KatInterview

Rent and Occupancy Targets for a 100-Unit Apartment Building

Math & Bit ManipulationAuto-graded · 2 test cases
EasyAuto-gradedMath & Bit Manipulationmathbreak-evenunit-economics

Last updated

Apply a simple profit model with fixed costs, a rent-proportional cost and a target return to find a required rent and a required occupancy.

Rent and Occupancy Targets for a 100-Unit Apartment Building

An investor owns a residential building and wants to know what rent it must charge to earn a target return. All inputs are fixed constants, so your function takes no arguments.

Property data

  • Number of units: 100
  • Current occupancy: 80% (so 80 units are rented)
  • Purchase and build cost: $10,000,000
  • Annual mortgage interest: $600,000
  • Other fixed annual costs: $400,000
  • Variable costs: 10% of the rent actually collected. Empty units generate no rent and therefore no variable cost.
  • Required annual return: 10% of the $10,000,000 cost

Profit model

Every occupied unit pays the same monthly rent for all 12 months of the year.

annual profit = 0.90 * (occupied units * 12 * monthly rent) - (interest + other fixed costs)

Principal repayments, taxes and depreciation are ignored. The target annual profit is 10% of the project cost.

Task

Implement a function that returns a dictionary with two numbers:

  1. "minimum_monthly_rent": the lowest monthly rent per unit that gives the target annual profit while occupancy stays at 80%.
  2. "occupancy_percentage_at_1200": if the monthly rent is $1,200 instead, the occupancy, expressed as a percentage of the 100 units, needed to earn the same target annual profit.

Output rules

  • Return plain floats with no rounding.
  • Do not round the required unit count up to a whole number. Treat occupancy as a continuous value.
  • Do not cap the occupancy percentage at 100. If the target cannot be reached even with every unit rented, report the raw number, which will be above 100.
  • The dictionary must have exactly the two keys above.

Constraints

  • No input parameters. Use the constants given above.
  • Both returned values are floats.
  • Variable costs apply only to collected rent.
  • The target profit is a profit figure, which means it comes on top of the interest and fixed costs.

Examples

Example 1

Input: property_rent_targets()

Output: {'minimum_monthly_rent': 2314.814814814815, 'occupancy_percentage_at_1200': 154.320987654321}

Hints

Hint 1

Add the interest and the other fixed costs, then add the target profit. That total is what the rent, after the variable-cost share is removed, must cover.

Hint 2

Only 90% of each rent dollar is left after variable costs, so divide the total to be covered by 0.9 to get the required gross annual rent.

Hint 3

For the first answer, divide the required gross annual rent by occupied units times 12. For the second, divide the same total by the yearly contribution of one occupied unit at $1,200, then convert the unit count into a percentage of 100.