The use of trailers or modular buildings for construction offices shall be allowed on a construction site only and must be removed within 30 days of the issuance of a certificate of occupancy; the use of trailers or modular buildings for on site real estate sales offices shall be allowed on a site for a period not to exceed 24 months.