update logic calc apartment