{"ref":{"kind":"component","id":"acquisition_mezzanine_debt","key":"sha256:8ef8fe421126143926364ed1e2eed43f3394051e51055c351f496b9011882aba"},"label":"Acquisition Mezzanine Debt","description":"Fund and settle the junior debt tranche behind senior proceeds.","inputs":[{"label":"Acquisition CF","name":"acquisition_cf","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"CapEx CF","name":"capex_cf","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Current Rate","name":"current_rate","valueType":{"axes":[],"dtype":"f64","unit":"bps"}},{"label":"Enabled","name":"enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Exit Fee","name":"exit_fee","valueType":{"axes":[],"dtype":"f64","unit":"bps"}},{"label":"Origination Fee","name":"origination_fee","valueType":{"axes":[],"dtype":"f64","unit":"bps"}},{"label":"PIK Rate","name":"pik_rate","valueType":{"axes":[],"dtype":"f64","unit":"bps"}},{"label":"Refinance Live","name":"refinance_live","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Refinance Start Month","name":"refinance_start_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Sale Month","name":"sale_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Senior Funding","name":"senior_funding","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Total LTC","name":"total_ltc","valueType":{"axes":[],"dtype":"f64","unit":"%"}}],"outputs":[{"label":"Allocation Error","name":"allocation_error","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Beginning","name":"beginning","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Cash Flow","name":"cash_flow","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Commitment","name":"commitment","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Current Interest","name":"current_interest","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Ending","name":"ending","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Exit Fee","name":"exit_fee","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Fees","name":"fees","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Funding","name":"funding","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Origination Fee","name":"origination_fee","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"PIK Interest","name":"pik_interest","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Principal Payoff","name":"principal_payoff","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":"$"}}],"dependencies":[{"id":"mezzanine_debt_period","key":"sha256:4cd8d64c072d0b544d55e0851915fe0d616e86bc126c6015137ece561ca81dca","kind":"component"}],"libraries":["acquisition_debt"],"notes":{"conventions":["Period zero is opening; period one accrues January 2024 on the shared fixed calendar.","Accrue cash and PIK interest on beginning balance plus funding using actual days divided by 360, through payoff."]},"calculation":{"nodes":[{"id":"input-acquisition_cf","label":"Acquisition CF","kind":"input"},{"id":"input-capex_cf","label":"CapEx CF","kind":"input"},{"id":"input-current_rate","label":"Current Rate","kind":"input"},{"id":"input-enabled","label":"Enabled","kind":"input"},{"id":"input-exit_fee","label":"Exit Fee","kind":"input"},{"id":"input-origination_fee","label":"Origination Fee","kind":"input"},{"id":"input-pik_rate","label":"PIK Rate","kind":"input"},{"id":"input-refinance_live","label":"Refinance Live","kind":"input"},{"id":"input-refinance_start_month","label":"Refinance Start Month","kind":"input"},{"id":"input-sale_month","label":"Sale Month","kind":"input"},{"id":"input-senior_funding","label":"Senior Funding","kind":"input"},{"id":"input-total_ltc","label":"Total LTC","kind":"input"},{"id":"step-value0","label":"(Acquisition CF + CapEx CF)","kind":"step","rule":"(Acquisition CF + CapEx CF)","sources":[{"node":"input-acquisition_cf"},{"node":"input-capex_cf"}]},{"id":"step-payoff_month","label":"Payoff month","kind":"step","rule":"if Refinance Live, then Refinance Start Month, otherwise Sale Month","sources":[{"node":"input-refinance_live"},{"node":"input-refinance_start_month"},{"node":"input-sale_month"}]},{"id":"step-indices","label":"Indices","kind":"step","rule":"Positions in series((Acquisition CF + CapEx CF))","sources":[{"node":"step-value0"}]},{"id":"step-value1","label":"(Indices < Payoff month)","kind":"step","rule":"(Indices < Payoff month)","sources":[{"node":"step-indices"},{"node":"step-payoff_month"}]},{"id":"step-desired","label":"Desired","kind":"step","rule":"Higher of (Running total((((Higher of ((Acquisition CF + CapEx CF) × -1) and 0 × (Indices < Payoff month)) × Enabled) × Total LTC)) − Running total(((Higher of Senior Funding and 0 × (Indices < Payoff month)) × Enabled))) and 0","sources":[{"node":"step-value0"},{"node":"step-value1"},{"node":"input-enabled"},{"node":"input-total_ltc"},{"node":"input-senior_funding"}]},{"id":"step-funding","label":"Funding","kind":"step","rule":"Higher of (Desired − Shift(Desired, 1)) and 0","sources":[{"node":"step-desired"}]},{"id":"step-commitment","label":"Commitment","kind":"step","rule":"Sum(Funding)","sources":[{"node":"step-funding"}]},{"id":"step-periods","label":"Periods","kind":"step","rule":"Run Acquisition Mezzanine Debt Period for each month. Carry the closing state into the next period.","sources":[{"node":"input-current_rate"},{"node":"step-funding"},{"node":"step-indices"},{"node":"step-payoff_month"},{"node":"input-pik_rate"}],"calls":[{"function":"basis_points_to_percent","label":"Basis points to percent","bindings":[{"name":"basis","label":"Basis","value":"10,000"},{"name":"basis_points","label":"Basis points","value":"Current Rate"}],"rule":"(Current Rate ÷ 10,000)"},{"function":"basis_points_to_percent","label":"Basis points to percent","bindings":[{"name":"basis","label":"Basis","value":"10,000"},{"name":"basis_points","label":"Basis points","value":"PIK Rate"}],"rule":"(PIK Rate ÷ 10,000)"},{"component":"mezzanine_debt_period","label":"Acquisition Mezzanine Debt Period","purpose":"Fund, accrue, and repay one mezzanine debt period.","bindings":[{"name":"current_rate","label":"Current Rate","value":"(Current Rate ÷ 10,000)"},{"name":"day_count","label":"Day Count","value":"fixed schedule of 121 values (month)"},{"name":"funding","label":"Funding","value":"Funding"},{"name":"pays_off","label":"Pays Off","value":"((Indices ≥ Payoff month) × (Indices ≤ Payoff month))"},{"name":"pik_rate","label":"PIK Rate","value":"(PIK Rate ÷ 10,000)"},{"name":"services","label":"Services","value":"((Indices > 0) × (Indices ≤ Payoff month))"}],"carry":[{"input":"opening","output":"ending","label":"Opening","initial":"0"}]}]},{"id":"output-funding","kind":"output","label":"Funding","rule":"Funding","sources":[{"node":"step-funding"}]},{"id":"step-exit_payment","label":"Exit payment","kind":"step","rule":"((Commitment × (Exit Fee ÷ 10,000)) × ((Positions in series(Funding) ≥ Payoff month) × (Positions in series(Funding) ≤ Payoff month)))","sources":[{"node":"step-commitment"},{"node":"input-exit_fee"},{"node":"step-funding"},{"node":"step-payoff_month"}],"calls":[{"function":"basis_points_to_percent","label":"Basis points to percent","bindings":[{"name":"basis","label":"Basis","value":"10,000"},{"name":"basis_points","label":"Basis points","value":"Exit Fee"}],"rule":"(Exit Fee ÷ 10,000)"}]},{"id":"step-origination","label":"Origination","kind":"step","rule":"((Commitment × (Origination Fee ÷ 10,000)) × ((Positions in series(Funding) ≥ 0) × (Positions in series(Funding) ≤ 0)))","sources":[{"node":"step-commitment"},{"node":"input-origination_fee"},{"node":"step-funding"}],"calls":[{"function":"basis_points_to_percent","label":"Basis points to percent","bindings":[{"name":"basis","label":"Basis","value":"10,000"},{"name":"basis_points","label":"Basis points","value":"Origination Fee"}],"rule":"(Origination Fee ÷ 10,000)"}]},{"id":"output-commitment","kind":"output","label":"Commitment","rule":"Commitment","sources":[{"node":"step-commitment"}]},{"id":"output-allocation_error","kind":"output","label":"Allocation Error","rule":"((((Periods · Beginning + Funding) + Periods · PIK Interest) − Periods · Principal Payoff) − Periods · Ending)","sources":[{"node":"step-periods","field":"beginning","fieldLabel":"Beginning","url":"/catalog/components/mezzanine_debt_period/#output-beginning"},{"node":"step-funding"},{"node":"step-periods","field":"pik_interest","fieldLabel":"PIK Interest","url":"/catalog/components/mezzanine_debt_period/#output-pik_interest"},{"node":"step-periods","field":"principal_payoff","fieldLabel":"Principal Payoff","url":"/catalog/components/mezzanine_debt_period/#output-principal_payoff"},{"node":"step-periods","field":"ending","fieldLabel":"Ending","url":"/catalog/components/mezzanine_debt_period/#output-ending"}]},{"id":"output-beginning","kind":"output","label":"Beginning","rule":"Periods · Beginning","sources":[{"node":"step-periods","field":"beginning","fieldLabel":"Beginning","url":"/catalog/components/mezzanine_debt_period/#output-beginning"}]},{"id":"output-current_interest","kind":"output","label":"Current Interest","rule":"Periods · Current Interest","sources":[{"node":"step-periods","field":"current_interest","fieldLabel":"Current Interest","url":"/catalog/components/mezzanine_debt_period/#output-current_interest"}]},{"id":"output-ending","kind":"output","label":"Ending","rule":"Periods · Ending","sources":[{"node":"step-periods","field":"ending","fieldLabel":"Ending","url":"/catalog/components/mezzanine_debt_period/#output-ending"}]},{"id":"output-pik_interest","kind":"output","label":"PIK Interest","rule":"Periods · PIK Interest","sources":[{"node":"step-periods","field":"pik_interest","fieldLabel":"PIK Interest","url":"/catalog/components/mezzanine_debt_period/#output-pik_interest"}]},{"id":"output-principal_payoff","kind":"output","label":"Principal Payoff","rule":"Periods · Principal Payoff","sources":[{"node":"step-periods","field":"principal_payoff","fieldLabel":"Principal Payoff","url":"/catalog/components/mezzanine_debt_period/#output-principal_payoff"}]},{"id":"output-refinance_payoff","kind":"output","label":"Refinance Payoff","rule":"(Periods · Principal Payoff × Refinance Live)","sources":[{"node":"step-periods","field":"principal_payoff","fieldLabel":"Principal Payoff","url":"/catalog/components/mezzanine_debt_period/#output-principal_payoff"},{"node":"input-refinance_live"}]},{"id":"output-exit_fee","kind":"output","label":"Exit Fee","rule":"Exit payment","sources":[{"node":"step-exit_payment"}]},{"id":"output-cash_flow","kind":"output","label":"Cash Flow","rule":"((((Funding − Periods · Current Interest) − Periods · Principal Payoff) − Origination) − Exit payment)","sources":[{"node":"step-funding"},{"node":"step-periods","field":"current_interest","fieldLabel":"Current Interest","url":"/catalog/components/mezzanine_debt_period/#output-current_interest"},{"node":"step-periods","field":"principal_payoff","fieldLabel":"Principal Payoff","url":"/catalog/components/mezzanine_debt_period/#output-principal_payoff"},{"node":"step-origination"},{"node":"step-exit_payment"}]},{"id":"output-fees","kind":"output","label":"Fees","rule":"((Origination + Exit payment) × -1)","sources":[{"node":"step-origination"},{"node":"step-exit_payment"}]},{"id":"output-origination_fee","kind":"output","label":"Origination Fee","rule":"Origination","sources":[{"node":"step-origination"}]}],"topics":[{"label":"Acquisition Mezzanine Debt","results":["output-allocation_error","output-cash_flow","output-commitment","output-exit_fee","output-fees","output-funding","output-origination_fee","output-refinance_payoff"]},{"label":"Acquisition Mezzanine Debt Period","results":["output-beginning","output-current_interest","output-ending","output-pik_interest","output-principal_payoff"]}]},"usedBy":[{"kind":"recipe","id":"hotel","key":"sha256:bf0956eceaed37e652044e718371c50f6d742ef9dc4b93edf968a748eda841c3"},{"kind":"recipe","id":"multifamily","key":"sha256:397eeb7b5a8b1a4584c66bc4c75f1a85494dbe812871f2e39c9192beb8a51f18"}]}
