{"ref":{"kind":"component","id":"corporate_expense_replacement","key":"sha256:26f41a540ad01b033441caeabc32f0005933ecb74e56782fa6af1fb95cd1c89c"},"label":"Embedded expense replacement","description":"Replace a nonoverlapping cost inside an admitted positive expense budget.","inputs":[{"label":"Aggregate","name":"aggregate","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Embedded","name":"embedded","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Replacement","name":"replacement","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"outputs":[{"label":"Change","name":"change","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Negative Inputs","name":"negative_inputs","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Overallocated","name":"overallocated","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Remaining","name":"remaining","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Total","name":"total","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["corporate_contribution"],"notes":{"conventions":["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."]},"calculation":{"nodes":[{"id":"input-aggregate","label":"Aggregate","kind":"input"},{"id":"input-embedded","label":"Embedded","kind":"input"},{"id":"input-replacement","label":"Replacement","kind":"input"},{"id":"step-remaining","label":"Remaining","kind":"step","rule":"(Aggregate − Embedded)","sources":[{"node":"input-aggregate"},{"node":"input-embedded"}]},{"id":"output-change","kind":"output","label":"Change","rule":"(Replacement − Embedded)","sources":[{"node":"input-replacement"},{"node":"input-embedded"}]},{"id":"output-negative_inputs","kind":"output","label":"Negative Inputs","rule":"((Higher of (Aggregate × -1) and 0 + Higher of (Embedded × -1) and 0) + Higher of (Replacement × -1) and 0)","sources":[{"node":"input-aggregate"},{"node":"input-embedded"},{"node":"input-replacement"}]},{"id":"output-overallocated","kind":"output","label":"Overallocated","rule":"Higher of (Remaining × -1) and 0","sources":[{"node":"step-remaining"}]},{"id":"output-remaining","kind":"output","label":"Remaining","rule":"Remaining","sources":[{"node":"step-remaining"}]},{"id":"output-total","kind":"output","label":"Total","rule":"(Remaining + Replacement)","sources":[{"node":"step-remaining"},{"node":"input-replacement"}]}],"topics":[{"label":"Embedded expense replacement","results":["output-change","output-negative_inputs","output-overallocated","output-remaining","output-total"]}]},"usedBy":[]}
