{"ref":{"kind":"component","id":"two_phase_senior_debt","key":"sha256:6a2a7c136ee49ac0422654a718284fa4fb62345f256ec866ff4a2f6303fcde39"},"label":"Two-phase senior debt schedule","description":"Fund, refinance, and settle one bounded two-phase senior facility.","inputs":[{"label":"Construction Draws","name":"construction_draws","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Initial Amortization Months","name":"initial_amortization_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Initial Effective Maturity","name":"initial_effective_maturity","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Initial Interest Only Months","name":"initial_interest_only_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Initial Loan","name":"initial_loan","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Initial Rate","name":"initial_rate","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"%"}},{"label":"Refinance Amortization Months","name":"refinance_amortization_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Refinance Amount","name":"refinance_amount","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Refinance Enabled","name":"refinance_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Refinance Interest Only Months","name":"refinance_interest_only_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Refinance Rate","name":"refinance_rate","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"%"}},{"label":"Refinance Start Month","name":"refinance_start_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Refinance Term Months","name":"refinance_term_months","valueType":{"axes":[],"dtype":"f64","unit":"months"}},{"label":"Sale Month","name":"sale_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}}],"outputs":[{"label":"Effective Maturity Month","name":"effective_maturity_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Initial Active","name":"initial_active","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"flag"}},{"label":"Initial Funding","name":"initial_funding","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Initial Payoff Month","name":"initial_payoff_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Initial Rollforward Error","name":"initial_rollforward_error","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Refinance Active","name":"refinance_active","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"flag"}},{"label":"Refinance Funding","name":"refinance_funding","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Refinance Payoff","name":"refinance_payoff","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Refinance Payoff Month","name":"refinance_payoff_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Refinance Rollforward Error","name":"refinance_rollforward_error","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Senior Beginning","name":"senior_beginning","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Senior Ending","name":"senior_ending","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Senior Funding","name":"senior_funding","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Senior Interest","name":"senior_interest","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Senior Principal","name":"senior_principal","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Senior Service","name":"senior_service","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Terminal Payoff","name":"terminal_payoff","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}}],"dependencies":[{"id":"variable_debt_schedule","key":"sha256:50ea3a6f80dbcb7d10d06ae78022e8392e59a5e1c016f94890de309fcf85e820","kind":"component"}],"libraries":["senior_debt"],"notes":{},"calculation":{"nodes":[{"id":"input-construction_draws","label":"Construction Draws","kind":"input"},{"id":"input-initial_amortization_months","label":"Initial Amortization Months","kind":"input"},{"id":"input-initial_effective_maturity","label":"Initial Effective Maturity","kind":"input"},{"id":"input-initial_interest_only_months","label":"Initial Interest Only Months","kind":"input"},{"id":"input-initial_loan","label":"Initial Loan","kind":"input"},{"id":"input-initial_rate","label":"Initial Rate","kind":"input"},{"id":"input-refinance_amortization_months","label":"Refinance Amortization Months","kind":"input"},{"id":"input-refinance_amount","label":"Refinance Amount","kind":"input"},{"id":"input-refinance_enabled","label":"Refinance Enabled","kind":"input"},{"id":"input-refinance_interest_only_months","label":"Refinance Interest Only Months","kind":"input"},{"id":"input-refinance_rate","label":"Refinance Rate","kind":"input"},{"id":"input-refinance_start_month","label":"Refinance Start Month","kind":"input"},{"id":"input-refinance_term_months","label":"Refinance Term Months","kind":"input"},{"id":"input-sale_month","label":"Sale Month","kind":"input"},{"id":"step-zero_draws","label":"Zero draws","kind":"step","rule":"(Construction Draws × 0)","sources":[{"node":"input-construction_draws"}]},{"id":"step-effective_maturity_month","label":"Effective Maturity Month","kind":"step","rule":"(0 + Initial Effective Maturity)","sources":[{"node":"input-initial_effective_maturity"}],"calls":[{"function":"debt_add_duration","label":"Debt add duration","bindings":[{"name":"duration","label":"Duration","value":"Initial Effective Maturity"},{"name":"month","label":"Month","value":"0"}],"rule":"(0 + Initial Effective Maturity)"}]},{"id":"step-refinance_hold","label":"Refinance hold","kind":"step","rule":"Higher of Lower of (Sale Month − Refinance Start Month) and Refinance Term Months and 0","sources":[{"node":"input-refinance_start_month"},{"node":"input-sale_month"},{"node":"input-refinance_term_months"}],"calls":[{"function":"debt_month_difference","label":"Debt month difference","bindings":[{"name":"earlier","label":"Earlier","value":"Refinance Start Month"},{"name":"later","label":"Later","value":"Sale Month"}],"rule":"(Sale Month − Refinance Start Month)"}]},{"id":"step-refinance_live","label":"Refinance live","kind":"step","rule":"(Refinance Enabled × (Refinance Start Month < Sale Month))","sources":[{"node":"input-refinance_enabled"},{"node":"input-refinance_start_month"},{"node":"input-sale_month"}]},{"id":"output-effective_maturity_month","kind":"output","label":"Effective Maturity Month","rule":"Effective Maturity Month","sources":[{"node":"step-effective_maturity_month"}]},{"id":"step-refinance_payoff_month","label":"Refinance Payoff Month","kind":"step","rule":"(Refinance Start Month + Refinance hold)","sources":[{"node":"step-refinance_hold"},{"node":"input-refinance_start_month"}],"calls":[{"function":"debt_add_duration","label":"Debt add duration","bindings":[{"name":"duration","label":"Duration","value":"Refinance hold"},{"name":"month","label":"Month","value":"Refinance Start Month"}],"rule":"(Refinance Start Month + Refinance hold)"}]},{"id":"step-initial_payoff_month","label":"Initial Payoff Month","kind":"step","rule":"if Refinance live, then Refinance Start Month, otherwise Lower of Sale Month and Effective Maturity Month","sources":[{"node":"step-refinance_live"},{"node":"input-refinance_start_month"},{"node":"input-sale_month"},{"node":"step-effective_maturity_month"}]},{"id":"step-refinance_schedule","label":"Refinance schedule","kind":"step","rule":"Result of Variable Debt Schedule","sources":[{"node":"input-refinance_amount"},{"node":"step-refinance_live"},{"node":"input-refinance_amortization_months"},{"node":"input-refinance_rate"},{"node":"step-zero_draws"},{"node":"input-refinance_interest_only_months"},{"node":"input-refinance_start_month"},{"node":"step-refinance_hold"}],"calls":[{"component":"variable_debt_schedule","purpose":"Roll one bounded debt facility with monthly rates through its payoff month.","label":"Variable Debt Schedule","bindings":[{"name":"acquisition_loan","label":"Acquisition loan","value":"(Refinance Amount × Refinance live)"},{"name":"amortization_months","label":"Amortization months","value":"Refinance Amortization Months"},{"name":"annual_rate","label":"Annual rate","value":"Refinance Rate"},{"name":"draws","label":"Debt draws","value":"Zero draws"},{"name":"interest_only_months","label":"Interest-only months","value":"Refinance Interest Only Months"},{"name":"start_month","label":"Debt start month","value":"Refinance Start Month"},{"name":"term_months","label":"Debt term months","value":"Refinance hold"}]}]},{"id":"step-refinance_active","label":"Refinance Active","kind":"step","rule":"(((Positions in series(Construction Draws) ≥ Refinance Start Month) × (Positions in series(Construction Draws) ≤ Refinance Payoff Month)) × Refinance live)","sources":[{"node":"input-construction_draws"},{"node":"input-refinance_start_month"},{"node":"step-refinance_payoff_month"},{"node":"step-refinance_live"}]},{"id":"output-refinance_payoff_month","kind":"output","label":"Refinance Payoff Month","rule":"Refinance Payoff Month","sources":[{"node":"step-refinance_payoff_month"}]},{"id":"step-initial_active","label":"Initial Active","kind":"step","rule":"((Positions in series(Construction Draws) ≥ 0) × (Positions in series(Construction Draws) ≤ Initial Payoff Month))","sources":[{"node":"input-construction_draws"},{"node":"step-initial_payoff_month"}]},{"id":"step-initial_term","label":"Initial term","kind":"step","rule":"Higher of (Initial Payoff Month − 0) and 0","sources":[{"node":"step-initial_payoff_month"}],"calls":[{"function":"debt_month_difference","label":"Debt month difference","bindings":[{"name":"earlier","label":"Earlier","value":"0"},{"name":"later","label":"Later","value":"Initial Payoff Month"}],"rule":"(Initial Payoff Month − 0)"}]},{"id":"output-initial_payoff_month","kind":"output","label":"Initial Payoff Month","rule":"Initial Payoff Month","sources":[{"node":"step-initial_payoff_month"}]},{"id":"output-refinance_funding","kind":"output","label":"Refinance Funding","rule":"Refinance schedule · Debt proceeds","sources":[{"node":"step-refinance_schedule","field":"proceeds","fieldLabel":"Debt proceeds","url":"/catalog/components/variable_debt_schedule/#output-proceeds"}]},{"id":"output-refinance_rollforward_error","kind":"output","label":"Refinance Rollforward Error","rule":"Refinance schedule · Debt rollforward error","sources":[{"node":"step-refinance_schedule","field":"rollforward_error","fieldLabel":"Debt rollforward error","url":"/catalog/components/variable_debt_schedule/#output-rollforward_error"}]},{"id":"output-refinance_active","kind":"output","label":"Refinance Active","rule":"Refinance Active","sources":[{"node":"step-refinance_active"}]},{"id":"output-initial_active","kind":"output","label":"Initial Active","rule":"Initial Active","sources":[{"node":"step-initial_active"}]},{"id":"step-initial_schedule","label":"Initial schedule","kind":"step","rule":"Result of Variable Debt Schedule","sources":[{"node":"input-initial_loan"},{"node":"input-initial_amortization_months"},{"node":"input-initial_rate"},{"node":"input-construction_draws"},{"node":"input-initial_interest_only_months"},{"node":"step-initial_term"}],"calls":[{"component":"variable_debt_schedule","purpose":"Roll one bounded debt facility with monthly rates through its payoff month.","label":"Variable Debt Schedule","bindings":[{"name":"acquisition_loan","label":"Acquisition loan","value":"Initial Loan"},{"name":"amortization_months","label":"Amortization months","value":"Initial Amortization Months"},{"name":"annual_rate","label":"Annual rate","value":"Initial Rate"},{"name":"draws","label":"Debt draws","value":"Construction Draws"},{"name":"interest_only_months","label":"Interest-only months","value":"Initial Interest Only Months"},{"name":"start_month","label":"Debt start month","value":"0"},{"name":"term_months","label":"Debt term months","value":"Initial term"}]}]},{"id":"step-initial_beginning","label":"Initial beginning","kind":"step","rule":"Initial schedule · Beginning debt balance","sources":[{"node":"step-initial_schedule","field":"beginning_balance","fieldLabel":"Beginning debt balance","url":"/catalog/components/variable_debt_schedule/#output-beginning_balance"}],"calls":[{"function":"debt_balance_series_to_money","label":"Debt balance series to money","bindings":[{"name":"balance","label":"Balance","value":"Initial schedule · Beginning debt balance"}],"rule":"Initial schedule · Beginning debt balance"}]},{"id":"step-senior_ending","label":"Senior Ending","kind":"step","rule":"(Initial schedule · Ending debt balance + Refinance schedule · Ending debt balance)","sources":[{"node":"step-initial_schedule","field":"ending_balance","fieldLabel":"Ending debt balance","url":"/catalog/components/variable_debt_schedule/#output-ending_balance"},{"node":"step-refinance_schedule","field":"ending_balance","fieldLabel":"Ending debt balance","url":"/catalog/components/variable_debt_schedule/#output-ending_balance"}],"calls":[{"function":"debt_balance_series_to_money","label":"Debt balance series to money","bindings":[{"name":"balance","label":"Balance","value":"Initial schedule · Ending debt balance"}],"rule":"Initial schedule · Ending debt balance"},{"function":"debt_balance_series_to_money","label":"Debt balance series to money","bindings":[{"name":"balance","label":"Balance","value":"Refinance schedule · Ending debt balance"}],"rule":"Refinance schedule · Ending debt balance"}]},{"id":"step-senior_funding","label":"Senior Funding","kind":"step","rule":"(Initial schedule · Debt proceeds + Refinance schedule · Debt proceeds)","sources":[{"node":"step-initial_schedule","field":"proceeds","fieldLabel":"Debt proceeds","url":"/catalog/components/variable_debt_schedule/#output-proceeds"},{"node":"step-refinance_schedule","field":"proceeds","fieldLabel":"Debt proceeds","url":"/catalog/components/variable_debt_schedule/#output-proceeds"}]},{"id":"step-senior_interest","label":"Senior Interest","kind":"step","rule":"(Initial schedule · Interest payment + Refinance schedule · Interest payment)","sources":[{"node":"step-initial_schedule","field":"interest","fieldLabel":"Interest payment","url":"/catalog/components/variable_debt_schedule/#output-interest"},{"node":"step-refinance_schedule","field":"interest","fieldLabel":"Interest payment","url":"/catalog/components/variable_debt_schedule/#output-interest"}]},{"id":"step-senior_principal","label":"Senior Principal","kind":"step","rule":"(Initial schedule · Scheduled principal + Refinance schedule · Scheduled principal)","sources":[{"node":"step-initial_schedule","field":"principal","fieldLabel":"Scheduled principal","url":"/catalog/components/variable_debt_schedule/#output-principal"},{"node":"step-refinance_schedule","field":"principal","fieldLabel":"Scheduled principal","url":"/catalog/components/variable_debt_schedule/#output-principal"}]},{"id":"step-terminal_payoff","label":"Terminal Payoff","kind":"step","rule":"((Initial schedule · Balloon payment × if Refinance live, then 0, otherwise 1) + Refinance schedule · Balloon payment)","sources":[{"node":"step-initial_schedule","field":"balloon","fieldLabel":"Balloon payment","url":"/catalog/components/variable_debt_schedule/#output-balloon"},{"node":"step-refinance_live"},{"node":"step-refinance_schedule","field":"balloon","fieldLabel":"Balloon payment","url":"/catalog/components/variable_debt_schedule/#output-balloon"}]},{"id":"output-initial_funding","kind":"output","label":"Initial Funding","rule":"Initial schedule · Debt proceeds","sources":[{"node":"step-initial_schedule","field":"proceeds","fieldLabel":"Debt proceeds","url":"/catalog/components/variable_debt_schedule/#output-proceeds"}]},{"id":"output-initial_rollforward_error","kind":"output","label":"Initial Rollforward Error","rule":"Initial schedule · Debt rollforward error","sources":[{"node":"step-initial_schedule","field":"rollforward_error","fieldLabel":"Debt rollforward error","url":"/catalog/components/variable_debt_schedule/#output-rollforward_error"}]},{"id":"step-refinance_payoff","label":"Refinance Payoff","kind":"step","rule":"((Initial beginning × ((Positions in series(Construction Draws) ≥ Refinance Start Month) × (Positions in series(Construction Draws) ≤ Refinance Start Month))) × Refinance live)","sources":[{"node":"step-initial_beginning"},{"node":"input-construction_draws"},{"node":"input-refinance_start_month"},{"node":"step-refinance_live"}]},{"id":"step-senior_beginning","label":"Senior Beginning","kind":"step","rule":"Shift(Senior Ending, 1)","sources":[{"node":"step-senior_ending"}]},{"id":"output-senior_ending","kind":"output","label":"Senior Ending","rule":"Senior Ending","sources":[{"node":"step-senior_ending"}]},{"id":"output-senior_funding","kind":"output","label":"Senior Funding","rule":"Senior Funding","sources":[{"node":"step-senior_funding"}]},{"id":"output-senior_interest","kind":"output","label":"Senior Interest","rule":"Senior Interest","sources":[{"node":"step-senior_interest"}]},{"id":"step-senior_service","label":"Senior Service","kind":"step","rule":"(Senior Interest + Senior Principal)","sources":[{"node":"step-senior_interest"},{"node":"step-senior_principal"}]},{"id":"output-senior_principal","kind":"output","label":"Senior Principal","rule":"Senior Principal","sources":[{"node":"step-senior_principal"}]},{"id":"output-terminal_payoff","kind":"output","label":"Terminal Payoff","rule":"Terminal Payoff","sources":[{"node":"step-terminal_payoff"}]},{"id":"output-refinance_payoff","kind":"output","label":"Refinance Payoff","rule":"Refinance Payoff","sources":[{"node":"step-refinance_payoff"}]},{"id":"output-senior_beginning","kind":"output","label":"Senior Beginning","rule":"Senior Beginning","sources":[{"node":"step-senior_beginning"}]},{"id":"output-senior_service","kind":"output","label":"Senior Service","rule":"Senior Service","sources":[{"node":"step-senior_service"}]}],"topics":[{"label":"Two-phase senior debt schedule","results":["output-effective_maturity_month","output-initial_active","output-initial_payoff_month","output-refinance_active","output-refinance_payoff","output-refinance_payoff_month","output-senior_beginning","output-senior_ending","output-senior_funding","output-senior_interest","output-senior_principal","output-senior_service","output-terminal_payoff"]},{"label":"Variable Debt Schedule","results":["output-initial_funding","output-initial_rollforward_error","output-refinance_funding","output-refinance_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"}]}
