All components

Property Scope Spend Period

Spread one property-improvement row over a bounded smoothstep curve.

How it works

Property Scope Spend Period (1)
  1. Spend

    (Cost × Monthly spend share)

Calculation steps (7)
  1. (Duration > 0)

    (Duration > 0)

  2. Limit to range(Start, 0, 120)

    Limit to range(Start, 0, 120)

    Uses
  3. if (Duration > 0), then Duration, otherwise 1

    if (Duration > 0), then Duration, otherwise 1

  4. Beginning progress

    Limit to range(((consecutive values from 0 to 120 − Limit to range(Start, 0, 120)) ÷ if (Duration > 0), then Duration, otherwise 1), 0, 1)

  5. Ending progress

    Limit to range((((consecutive values from 0 to 120 − Limit to range(Start, 0, 120)) + 1) ÷ if (Duration > 0), then Duration, otherwise 1), 0, 1)

  6. Smoothstep delta

    (((Ending progress × Ending progress) × (3 − (2 × Ending progress))) − ((Beginning progress × Beginning progress) × (3 − (2 × Beginning progress))))

  7. Monthly spend share

    if (Duration > 0), then Smoothstep delta, otherwise ((consecutive values from 0 to 120 ≥ Limit to range(Start, 0, 120)) × (consecutive values from 0 to 120 ≤ Limit to range(Start, 0, 120)))

Inputs and outputs

Inputs (3)
Inputs
NameUnitApplies to
CostDollarsSingle value
DurationMonthsSingle value
StartMonthsSingle value
Outputs (1)
Outputs
NameUnitApplies to
SpendDollarsMonth

Recipes using this calculation

Libraries