All components

Lease Calendar

Project lease expirations and classic-unit availability from dated unit rows.

How it works

Lease Calendar (6)
  1. Availability

    Sum by row and column group(if if Classic, then if (Conditional result using Occupied ≤ Value at index(consecutive values from 0 to 120, -1)), then true, otherwise false, otherwise false, then Units, otherwise 0, Lower of Conditional result using Occupied and Value at index(consecutive values from 0 to 120, -1), Rent Roll Floorplan, consecutive values from 0 to 120, Unit Mix Floorplans)

  2. End Dates

    End Dates

  3. End Months

    End Months

  4. Expirations

    Sum by group(if (Higher of End Months and 0 ≤ Value at index(consecutive values from 0 to 120, -1)), then if Occupied, then Units, otherwise 0, otherwise 0, Lower of Higher of End Months and 0 and Value at index(consecutive values from 0 to 120, -1), consecutive values from 0 to 120)

  5. Start Dates

    Start Dates

  6. Start Months

    Date month offset(if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”, Start Dates)

    Model function · Rent roll month offset

    Count the calendar months from the starting date to each ending date. Dates in the same calendar month have an offset of zero.

    Argument values
    End
    Start Dates
    Start
    if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”
Calculation steps (6)
  1. if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”

    if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”

  2. End Dates

    if (Rent Roll Lease End = “”), then if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”, otherwise Rent Roll Lease End

  3. Start Dates

    if (Rent Roll Lease Start = “”), then if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”, otherwise Rent Roll Lease Start

  4. End Months

    Date month offset(if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”, End Dates)

    Model function · Rent roll month offset

    Count the calendar months from the starting date to each ending date. Dates in the same calendar month have an offset of zero.

    Argument values
    End
    End Dates
    Start
    if Detail, then Rent Roll As Of Date, otherwise “1900-01-01”
  5. Higher of End Months and 0

    Higher of End Months and 0

  6. Conditional result using Occupied

    if Occupied, then Higher of Higher of End Months and 0 and 1, otherwise 0

Inputs and outputs

Inputs (9)
Inputs
NameUnitApplies to
ClassicFlagRent roll
DetailFlagSingle value
OccupiedUnitlessRent roll
Rent Roll As Of DatedateSingle value
Rent Roll FloorplanTextRent roll
Rent Roll Lease EnddateRent roll
Rent Roll Lease StartdateRent roll
Unit Mix FloorplansTextUnit
UnitsunitsRent roll
Outputs (6)
Outputs
NameUnitApplies to
AvailabilityunitsMonth, Unit
End DatesdateRent roll
End MonthsMonthsRent roll
ExpirationsunitsMonth
Start DatesdateRent roll
Start MonthsMonthsRent roll

Recipes using this calculation

Libraries