{"ref":{"kind":"component","id":"development_debt_facility_cash_flow","key":"sha256:fd521c3ffb433151de27fb9c95c3522127c09da987a01653741e3a00473d0f36"},"label":"Development Debt Facility Cash Flow","description":"Accrue, split, settle, and fee one development debt facility.","inputs":[{"label":"Cash Pay Pct","name":"cash_pay_pct","valueType":{"axes":[],"dtype":"f64","unit":"%"}},{"label":"Ending Balance","name":"ending_balance","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$/end"}},{"label":"Exit Fee Amount","name":"exit_fee_amount","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Interest Draws","name":"interest_draws","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Interest Rate","name":"interest_rate","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"%"}},{"label":"Interest Start Month","name":"interest_start_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Origination Fee Amount","name":"origination_fee_amount","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Principal Payoff","name":"principal_payoff","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Settlement Flag","name":"settlement_flag","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"flag"}},{"label":"Start Month","name":"start_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}}],"outputs":[{"label":"Accrued Interest","name":"accrued_interest","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Accrued Interest Balance","name":"accrued_interest_balance","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$/end"}},{"label":"Accrued Interest Payoff","name":"accrued_interest_payoff","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Cash Interest","name":"cash_interest","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Exit Fee","name":"exit_fee","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Interest","name":"interest","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Origination Fee","name":"origination_fee","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["development_cash_flow"],"notes":{},"calculation":{"nodes":[{"id":"input-cash_pay_pct","label":"Cash Pay Pct","kind":"input"},{"id":"input-ending_balance","label":"Ending Balance","kind":"input"},{"id":"input-exit_fee_amount","label":"Exit Fee Amount","kind":"input"},{"id":"input-interest_draws","label":"Interest Draws","kind":"input"},{"id":"input-interest_rate","label":"Interest Rate","kind":"input"},{"id":"input-interest_start_month","label":"Interest Start Month","kind":"input"},{"id":"input-origination_fee_amount","label":"Origination Fee Amount","kind":"input"},{"id":"input-principal_payoff","label":"Principal Payoff","kind":"input"},{"id":"input-settlement_flag","label":"Settlement Flag","kind":"input"},{"id":"input-start_month","label":"Start Month","kind":"input"},{"id":"step-value0","label":"Positions in series(Interest Draws)","kind":"step","rule":"Positions in series(Interest Draws)","sources":[{"node":"input-interest_draws"}]},{"id":"step-interest_bearing_balance","label":"Interest bearing balance","kind":"step","rule":"Higher of (Ending Balance − Running total(Principal Payoff)) and 0","sources":[{"node":"input-ending_balance"},{"node":"input-principal_payoff"}],"calls":[{"function":"development_debt_balance_to_cash","label":"Development debt balance to cash","bindings":[{"name":"balance","label":"Balance","value":"Ending Balance"}],"rule":"Ending Balance"}]},{"id":"output-exit_fee","kind":"output","label":"Exit Fee","rule":"(Exit Fee Amount × Settlement Flag)","sources":[{"node":"input-exit_fee_amount"},{"node":"input-settlement_flag"}]},{"id":"output-origination_fee","kind":"output","label":"Origination Fee","rule":"(Origination Fee Amount × ((Positions in series(Interest Draws) ≥ Start Month) × (Positions in series(Interest Draws) ≤ Start Month)))","sources":[{"node":"input-origination_fee_amount"},{"node":"step-value0"},{"node":"input-start_month"}]},{"id":"step-beginning_balance","label":"Beginning balance","kind":"step","rule":"Shift(Interest bearing balance, 1)","sources":[{"node":"step-interest_bearing_balance"}]},{"id":"step-average_balance","label":"Average balance","kind":"step","rule":"(Beginning balance + (Interest Draws × 0.5))","sources":[{"node":"step-beginning_balance"},{"node":"input-interest_draws"}]},{"id":"step-interest","label":"Interest","kind":"step","rule":"((Average balance × (Interest Rate ÷ 12)) × (Positions in series(Interest Draws) ≥ Interest Start Month))","sources":[{"node":"step-average_balance"},{"node":"input-interest_rate"},{"node":"input-interest_draws"},{"node":"input-interest_start_month"}]},{"id":"step-cash_interest","label":"Cash Interest","kind":"step","rule":"(Interest × Cash Pay Pct)","sources":[{"node":"step-interest"},{"node":"input-cash_pay_pct"}]},{"id":"output-interest","kind":"output","label":"Interest","rule":"Interest","sources":[{"node":"step-interest"}]},{"id":"step-accrued_interest","label":"Accrued Interest","kind":"step","rule":"(Interest − Cash Interest)","sources":[{"node":"step-interest"},{"node":"step-cash_interest"}]},{"id":"output-cash_interest","kind":"output","label":"Cash Interest","rule":"Cash Interest","sources":[{"node":"step-cash_interest"}]},{"id":"step-accrued_before_payoff","label":"Accrued before payoff","kind":"step","rule":"Running total(Accrued Interest)","sources":[{"node":"step-accrued_interest"}]},{"id":"output-accrued_interest","kind":"output","label":"Accrued Interest","rule":"Accrued Interest","sources":[{"node":"step-accrued_interest"}]},{"id":"step-accrued_interest_payoff","label":"Accrued Interest Payoff","kind":"step","rule":"(Accrued before payoff × Settlement Flag)","sources":[{"node":"step-accrued_before_payoff"},{"node":"input-settlement_flag"}]},{"id":"step-accrued_interest_balance","label":"Accrued Interest Balance","kind":"step","rule":"Higher of (Accrued before payoff − Running total(Accrued Interest Payoff)) and 0","sources":[{"node":"step-accrued_before_payoff"},{"node":"step-accrued_interest_payoff"}],"calls":[{"function":"development_cash_to_debt_balance","label":"Development cash to debt balance","bindings":[{"name":"cash","label":"Cash","value":"Higher of (Accrued before payoff − Running total(Accrued Interest Payoff)) and 0"}],"rule":"Higher of (Accrued before payoff − Running total(Accrued Interest Payoff)) and 0"}]},{"id":"output-accrued_interest_payoff","kind":"output","label":"Accrued Interest Payoff","rule":"Accrued Interest Payoff","sources":[{"node":"step-accrued_interest_payoff"}]},{"id":"output-accrued_interest_balance","kind":"output","label":"Accrued Interest Balance","rule":"Accrued Interest Balance","sources":[{"node":"step-accrued_interest_balance"}]}],"topics":[{"label":"Development Debt Facility Cash Flow","results":["output-accrued_interest","output-accrued_interest_balance","output-accrued_interest_payoff","output-cash_interest","output-exit_fee","output-interest","output-origination_fee"]}]},"usedBy":[{"kind":"recipe","id":"condo_development","key":"sha256:e1e317fbad79babd19d06f30b451bf1b5fc74bf415bd554eb16205d31d5a7996"},{"kind":"recipe","id":"data_center_development","key":"sha256:b76434a51896bf65e497e8679d3a1c7a72f5c0ed2705618ed598fbad02e7ef0e"},{"kind":"recipe","id":"multifamily_development","key":"sha256:bd5fced62c36e2251666c32d8cd629753c9f945e2292b401f90f46ce957e1bcd"},{"kind":"recipe","id":"single_family_development","key":"sha256:7cbf7a6885faf03497d0f91f19204cb9d504c05b3623fa3a362281037883288e"}]}
