All components

Completion cohorts

Complete each cohort at its first eligible monthly observation.

How it works

Completion cohorts (4)
  1. Completed

    (Sum(Work Pending, (consecutive values from 0 to 120 = Month)) + Immediate)

  2. Offline

    (Sum(Conditional result using Future) + Sum using Work Tail)

  3. Work Pending

    Conditional result using Future

  4. Work Tail

    Sum using Work Tail

Calculation steps (7)
  1. Effective delay

    Higher of Delay and Minimum Delay

  2. Elapsed

    (consecutive values from 0 to 120 − Month)

    Uses
  3. Future

    (consecutive values from 0 to 120 > Month)

    Uses
  4. Immediate

    if (Effective delay = 0), then Starts, otherwise 0

  5. Sum using Work Tail

    (Work Tail + if (Effective delay > (120 − Month)), then Starts, otherwise 0)

  6. Completion bucket

    if (Elapsed ≥ Effective delay), then ((Elapsed − 1) < Effective delay), otherwise false

  7. Conditional result using Future

    if Future, then (Work Pending + if Completion bucket, then Starts, otherwise 0), otherwise 0

Conventions (2)
  • A cohort keeps its start-period duration.
  • Retain pending amounts beyond the horizon; do not impose a maximum duration.

Inputs and outputs

Inputs (6)
Inputs
NameUnitApplies to
DelayMonthsSingle value
Minimum DelayMonthsSingle value
MonthMonthsSingle value
StartsunitsSingle value
Work PendingunitsCompletion
Work TailunitsSingle value
Outputs (4)
Outputs
NameUnitApplies to
CompletedunitsSingle value
OfflineunitsSingle value
Work PendingunitsCompletion
Work TailunitsSingle value

Recipes using this calculation

Libraries