{"ref":{"kind":"component","id":"capital_spend_period","key":"sha256:ffd16d3906488c5cc2d11d03e717faf171923366a8e0fa528b7b17379c05cae2"},"label":"Hotel Capital Spend Period","description":"Spread one capital workstream over the model horizon.","inputs":[{"label":"Budget","name":"budget","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":"Cash Flow","name":"cash_flow","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["hotel_business_plan"],"notes":{},"calculation":{"nodes":[{"id":"input-budget","label":"Budget","kind":"input"},{"id":"input-duration","label":"Duration","kind":"input"},{"id":"input-start","label":"Start","kind":"input"},{"id":"step-value0","label":"Higher of Duration and 1","kind":"step","rule":"Higher of Duration and 1","sources":[{"node":"input-duration"}]},{"id":"output-cash_flow","kind":"output","label":"Cash Flow","rule":"(((Budget × ((consecutive values from 0 to 120 ≥ Start) × (consecutive values from 0 to 120 < (Start + Higher of Duration and 1)))) ÷ Higher of Duration and 1) × -1)","sources":[{"node":"input-budget"},{"node":"input-start"},{"node":"step-value0"}],"calls":[{"function":"hotel_capital_month_number","label":"Hotel capital month number","bindings":[{"name":"months","label":"Months","value":"Higher of Duration and 1"}],"rule":"Higher of Duration and 1"}]}],"topics":[{"label":"Hotel Capital Spend Period","results":["output-cash_flow"]}]},"usedBy":[{"kind":"recipe","id":"hotel","key":"sha256:bf0956eceaed37e652044e718371c50f6d742ef9dc4b93edf968a748eda841c3"}]}
