All components

Embedded expense replacement

Replace a nonoverlapping cost inside an admitted positive expense budget.

How it works

Embedded expense replacement (5)
  1. Change

    (Replacement − Embedded)

  2. Negative Inputs

    ((Higher of (Aggregate × -1) and 0 + Higher of (Embedded × -1) and 0) + Higher of (Replacement × -1) and 0)

  3. Overallocated

    Higher of (Remaining × -1) and 0

  4. Remaining

    Remaining

  5. Total

    (Remaining + Replacement)

Calculation steps (1)
  1. Remaining

    (Aggregate − Embedded)

Conventions (6)
  • Aggregate, embedded and replacement expenses are positive magnitudes in one currency, scale, period and perimeter.
  • The embedded amount is already included in aggregate; remove it once before inserting the replacement.
  • The caller identifies or explicitly estimates the embedded amount and applies matching scaling to aggregate and embedded costs.
  • Remaining and total expenses are not clamped. Negative inputs and an embedded amount above aggregate are exposed separately.
  • Change is replacement less embedded: a positive change increases expense and reduces income.
  • This rule does not allocate costs, classify expenses, calculate tax, or determine cash settlement.

Inputs and outputs

Inputs (3)
Inputs
NameUnitApplies to
AggregateDollarsSingle value
EmbeddedDollarsSingle value
ReplacementDollarsSingle value
Outputs (5)
Outputs
NameUnitApplies to
ChangeDollarsSingle value
Negative InputsDollarsSingle value
OverallocatedDollarsSingle value
RemainingDollarsSingle value
TotalDollarsSingle value

Libraries