{"ref":{"kind":"component","id":"variable_debt_schedule","key":"sha256:50ea3a6f80dbcb7d10d06ae78022e8392e59a5e1c016f94890de309fcf85e820"},"label":"Variable Debt Schedule","description":"Roll one bounded debt facility with monthly rates through its payoff month.","inputs":[{"label":"Acquisition loan","name":"acquisition_loan","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Amortization months","name":"amortization_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Annual rate","name":"annual_rate","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"%"}},{"label":"Debt draws","name":"draws","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Interest-only months","name":"interest_only_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Debt start month","name":"start_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Debt term months","name":"term_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}}],"outputs":[{"label":"Balloon payment","name":"balloon","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Beginning debt balance","name":"beginning_balance","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$/end"}},{"label":"Ending debt balance","name":"ending_balance","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$/end"}},{"label":"Interest payment","name":"interest","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Scheduled principal","name":"principal","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Debt proceeds","name":"proceeds","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Debt rollforward error","name":"rollforward_error","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}}],"dependencies":[{"id":"fixed_debt_schedule_period","key":"sha256:264c180bf0b17d434af7316d8671b745c473385943539a93e6958345a90fcd54","kind":"component"}],"libraries":["debt"],"notes":{"conventions":["Fund the acquisition loan at the start month; subsequent positive draws fund through maturity.","Period zero is opening; period one accrues January 2024 using actual days and annual rate divided by 360.","Later starts retain the same calendar; accrue on beginning balance plus period funding, through payoff.","After interest-only periods, recompute amortization from the current annual rate divided by 12 and remaining months.","Repay the remaining principal at the bounded maturity month; reconcile each period within one currency unit."],"checks":[{"appliesWhen":null,"escalatesWhen":null,"failureRepair":null,"id":"reconciles","inputs":[],"kind":"value","label":"Debt balance reconciles","message":"Beginning debt, funding, principal payments, balloon, and ending debt must reconcile.","notApplicableMessage":null,"output":"rollforward_error","path":"rollforward_error","phase":"model","reducer":"all","relation":"absolute","role":"integrity","severity":"error","sourceInputs":[],"threshold":1.0,"unavailable":null}]},"calculation":{"nodes":[{"id":"input-acquisition_loan","label":"Acquisition loan","kind":"input"},{"id":"input-amortization_months","label":"Amortization months","kind":"input"},{"id":"input-annual_rate","label":"Annual rate","kind":"input"},{"id":"input-draws","label":"Debt draws","kind":"input"},{"id":"input-interest_only_months","label":"Interest-only months","kind":"input"},{"id":"input-start_month","label":"Debt start month","kind":"input"},{"id":"input-term_months","label":"Debt term months","kind":"input"},{"id":"step-daily_rate","label":"Daily rate","kind":"step","rule":"(Annual rate ÷ 360)","sources":[{"node":"input-annual_rate"}]},{"id":"step-monthly_rate","label":"Monthly rate","kind":"step","rule":"(Annual rate ÷ 12)","sources":[{"node":"input-annual_rate"}],"calls":[{"function":"debt_percent_series_to_number","label":"Debt percent series to number","bindings":[{"name":"percent","label":"Percent","value":"Annual rate"}],"rule":"Annual rate"}]},{"id":"step-months","label":"Months","kind":"step","rule":"(Positions in series(Debt draws) ÷ 1)","sources":[{"node":"input-draws"}],"calls":[{"function":"debt_index_series_to_month","label":"Debt index series to month","bindings":[{"name":"index","label":"Index","value":"Positions in series(Debt draws)"},{"name":"unit_scale","label":"Unit scale","value":"1"}],"rule":"(Positions in series(Debt draws) ÷ 1)"}]},{"id":"step-bounded_start","label":"Bounded start","kind":"step","rule":"Limit to range(Debt start month, 0, 121)","sources":[{"node":"input-start_month"}]},{"id":"step-age","label":"Age","kind":"step","rule":"(Months − Bounded start)","sources":[{"node":"step-bounded_start"},{"node":"step-months"}],"calls":[{"function":"debt_month_series_difference","label":"Debt month series difference","bindings":[{"name":"earlier","label":"Earlier","value":"Bounded start"},{"name":"later","label":"Later","value":"Months"}],"rule":"(Months − Bounded start)"}]},{"id":"step-end_month","label":"End month","kind":"step","rule":"Limit to range((Bounded start + Debt term months), 0, 120)","sources":[{"node":"input-term_months"},{"node":"step-bounded_start"}],"calls":[{"function":"debt_add_duration","label":"Debt add duration","bindings":[{"name":"duration","label":"Duration","value":"Debt term months"},{"name":"month","label":"Month","value":"Bounded start"}],"rule":"(Bounded start + Debt term months)"}]},{"id":"step-starts","label":"Starts","kind":"step","rule":"((Months ≥ Bounded start) × (Months ≤ Bounded start))","sources":[{"node":"step-months"},{"node":"step-bounded_start"}]},{"id":"step-remaining_amortization","label":"Remaining amortization","kind":"step","rule":"(Amortization months − ((Age − Interest-only months) − 1))","sources":[{"node":"input-amortization_months"},{"node":"step-age"},{"node":"input-interest_only_months"}]},{"id":"step-balloon_due","label":"Balloon due","kind":"step","rule":"(((Months ≥ End month) × (Months ≤ End month)) × (Months ≥ Bounded start))","sources":[{"node":"step-months"},{"node":"step-end_month"},{"node":"step-bounded_start"}]},{"id":"step-services","label":"Services","kind":"step","rule":"((Months > Bounded start) × (Months ≤ End month))","sources":[{"node":"step-months"},{"node":"step-bounded_start"},{"node":"step-end_month"}]},{"id":"step-growth","label":"Growth","kind":"step","rule":"((1 + Monthly rate) ^ Remaining amortization)","sources":[{"node":"step-monthly_rate"},{"node":"step-remaining_amortization"}],"calls":[{"function":"debt_duration_series_to_number","label":"Debt duration series to number","bindings":[{"name":"duration","label":"Duration","value":"Remaining amortization"}],"rule":"Remaining amortization"}]},{"id":"step-amortizes","label":"Amortizes","kind":"step","rule":"(((Services × (Age > Interest-only months)) × (Remaining amortization > 0)) × (Monthly rate > 0))","sources":[{"node":"step-services"},{"node":"step-age"},{"node":"input-interest_only_months"},{"node":"step-remaining_amortization"},{"node":"step-monthly_rate"}]},{"id":"step-payment_divisor","label":"Payment divisor","kind":"step","rule":"Higher of (Growth − 1) and 1e-12","sources":[{"node":"step-growth"}]},{"id":"step-periods","label":"Periods","kind":"step","rule":"Run Fixed Debt Schedule Period for each month. Carry the closing state into the next period.","sources":[{"node":"input-acquisition_loan"},{"node":"step-amortizes"},{"node":"step-balloon_due"},{"node":"step-daily_rate"},{"node":"input-draws"},{"node":"step-growth"},{"node":"step-monthly_rate"},{"node":"step-payment_divisor"},{"node":"step-services"},{"node":"step-starts"}],"calls":[{"component":"fixed_debt_schedule_period","label":"Fixed Debt Schedule Period","purpose":"Fund, accrue, amortize, and settle one fixed-rate debt period.","bindings":[{"name":"acquisition_loan","label":"Acquisition loan","value":"Acquisition loan"},{"name":"amortizes","label":"Amortization active","value":"Amortizes"},{"name":"balloon_due","label":"Balloon payment due","value":"Balloon due"},{"name":"daily_rate","label":"Daily interest rate","value":"Daily rate"},{"name":"day_count","label":"Calendar days in period","value":"fixed schedule of 121 values (month)"},{"name":"draw","label":"Debt draw","value":"Debt draws"},{"name":"growth","label":"Amortization growth factor","value":"Growth"},{"name":"monthly_rate","label":"Monthly interest rate","value":"Monthly rate"},{"name":"payment_divisor","label":"Amortization payment divisor","value":"Payment divisor"},{"name":"services","label":"Debt service active","value":"Services"},{"name":"starts","label":"Debt funding start","value":"Starts"}],"carry":[{"input":"opening_balance","output":"ending_balance","label":"Opening debt balance","initial":"0"}]}]},{"id":"output-balloon","kind":"output","label":"Balloon payment","rule":"Periods · Balloon payment","sources":[{"node":"step-periods","field":"balloon","fieldLabel":"Balloon payment","url":"/catalog/components/fixed_debt_schedule_period/#output-balloon"}]},{"id":"output-beginning_balance","kind":"output","label":"Beginning debt balance","rule":"Periods · Beginning debt balance","sources":[{"node":"step-periods","field":"beginning_balance","fieldLabel":"Beginning debt balance","url":"/catalog/components/fixed_debt_schedule_period/#output-beginning_balance"}]},{"id":"output-ending_balance","kind":"output","label":"Ending debt balance","rule":"Periods · Ending debt balance","sources":[{"node":"step-periods","field":"ending_balance","fieldLabel":"Ending debt balance","url":"/catalog/components/fixed_debt_schedule_period/#output-ending_balance"}]},{"id":"output-interest","kind":"output","label":"Interest payment","rule":"Periods · Interest payment","sources":[{"node":"step-periods","field":"interest","fieldLabel":"Interest payment","url":"/catalog/components/fixed_debt_schedule_period/#output-interest"}]},{"id":"output-principal","kind":"output","label":"Scheduled principal","rule":"Periods · Scheduled principal","sources":[{"node":"step-periods","field":"principal","fieldLabel":"Scheduled principal","url":"/catalog/components/fixed_debt_schedule_period/#output-principal"}]},{"id":"output-proceeds","kind":"output","label":"Debt proceeds","rule":"Periods · Debt proceeds","sources":[{"node":"step-periods","field":"proceeds","fieldLabel":"Debt proceeds","url":"/catalog/components/fixed_debt_schedule_period/#output-proceeds"}]},{"id":"output-rollforward_error","kind":"output","label":"Debt rollforward error","rule":"Periods · Debt rollforward error","sources":[{"node":"step-periods","field":"rollforward_error","fieldLabel":"Debt rollforward error","url":"/catalog/components/fixed_debt_schedule_period/#output-rollforward_error"}]}],"topics":[{"label":"Fixed Debt Schedule Period","results":["output-balloon","output-beginning_balance","output-ending_balance","output-interest","output-principal","output-proceeds","output-rollforward_error"]}]},"usedBy":[{"kind":"recipe","id":"data_center_acquisition","key":"sha256:a3de19f40187caf36db2e6ce0da98119726e3c4bf05500115912b18e3fc8c1ca"},{"kind":"recipe","id":"data_center_development","key":"sha256:b76434a51896bf65e497e8679d3a1c7a72f5c0ed2705618ed598fbad02e7ef0e"},{"kind":"recipe","id":"hotel","key":"sha256:bf0956eceaed37e652044e718371c50f6d742ef9dc4b93edf968a748eda841c3"},{"kind":"recipe","id":"multifamily","key":"sha256:397eeb7b5a8b1a4584c66bc4c75f1a85494dbe812871f2e39c9192beb8a51f18"}]}
