(a) The habitable rooms in existing buildings shall have a clear ceiling height of not less than 71 /3 feet. The floor area of that part of any room where the ceiling height is less than 71 /3 feet shall not be considered as part of the floor area in computing the total area of the room for the purpose of determining the maximum permissible occupancy thereof. (b) In attics or top half-stories, the ceiling height shall not be less than seven feet over not less than one-third of the area of a habitable room when used for sleeping, study or similar activity. In calculating the floor area of such rooms, only those portions of the floor area of the room having a clear ceiling height of five feet or more may be included.