{"ref":{"kind":"component","id":"property_scope_spend_period","key":"sha256:c8c4986fb7dc28c175a5b3f5ee591df9b48d24c10774b2945143ae432ad290f7"},"label":"Property Scope Spend Period","description":"Spread one property-improvement row over a bounded smoothstep curve.","inputs":[{"label":"Cost","name":"cost","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Duration","name":"duration","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Start","name":"start","valueType":{"axes":[],"dtype":"f64","unit":"mo"}}],"outputs":[{"label":"Spend","name":"spend","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["multifamily_capex"],"notes":{},"calculation":{"nodes":[{"id":"input-cost","label":"Cost","kind":"input"},{"id":"input-duration","label":"Duration","kind":"input"},{"id":"input-start","label":"Start","kind":"input"},{"id":"step-value0","label":"(Duration > 0)","kind":"step","rule":"(Duration > 0)","sources":[{"node":"input-duration"}]},{"id":"step-value1","label":"Limit to range(Start, 0, 120)","kind":"step","rule":"Limit to range(Start, 0, 120)","sources":[{"node":"input-start"}]},{"id":"step-value2","label":"if (Duration > 0), then Duration, otherwise 1","kind":"step","rule":"if (Duration > 0), then Duration, otherwise 1","sources":[{"node":"step-value0"},{"node":"input-duration"}]},{"id":"step-beginning_progress","label":"Beginning progress","kind":"step","rule":"Limit to range(((consecutive values from 0 to 120 − Limit to range(Start, 0, 120)) ÷ if (Duration > 0), then Duration, otherwise 1), 0, 1)","sources":[{"node":"step-value1"},{"node":"step-value2"}]},{"id":"step-ending_progress","label":"Ending progress","kind":"step","rule":"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)","sources":[{"node":"step-value1"},{"node":"step-value2"}]},{"id":"step-smoothstep_delta","label":"Smoothstep delta","kind":"step","rule":"(((Ending progress × Ending progress) × (3 − (2 × Ending progress))) − ((Beginning progress × Beginning progress) × (3 − (2 × Beginning progress))))","sources":[{"node":"step-ending_progress"},{"node":"step-beginning_progress"}]},{"id":"step-monthly_spend_share","label":"Monthly spend share","kind":"step","rule":"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)))","sources":[{"node":"step-value0"},{"node":"step-smoothstep_delta"},{"node":"step-value1"}]},{"id":"output-spend","kind":"output","label":"Spend","rule":"(Cost × Monthly spend share)","sources":[{"node":"input-cost"},{"node":"step-monthly_spend_share"}]}],"topics":[{"label":"Property Scope Spend Period","results":["output-spend"]}]},"usedBy":[{"kind":"recipe","id":"multifamily","key":"sha256:397eeb7b5a8b1a4584c66bc4c75f1a85494dbe812871f2e39c9192beb8a51f18"}]}
