{"ref":{"kind":"component","id":"debt_sizing_decision","key":"sha256:a64a0df5a453b0f14bd01f2f7e3a35e59c14dd0ff2ad517ffa8760936816330d"},"label":"Debt sizing decision","description":"Select the first minimum enabled debt support in canonical lender order.","inputs":[{"label":"Debt yield enabled","name":"debt_yield_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Debt yield support","name":"debt_yield_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"DSCR enabled","name":"dscr_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"DSCR support","name":"dscr_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"LTC enabled","name":"ltc_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"LTC support","name":"ltc_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"LTV enabled","name":"ltv_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"LTV support","name":"ltv_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Requested proceeds enabled","name":"requested_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Requested proceeds support","name":"requested_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"outputs":[{"label":"Binding debt constraint","name":"binding_constraint","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Debt sizing complete","name":"complete","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Debt yield binding","name":"debt_yield_binding","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Debt yield enabled","name":"debt_yield_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Debt yield support","name":"debt_yield_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"DSCR binding","name":"dscr_binding","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"DSCR enabled","name":"dscr_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"DSCR support","name":"dscr_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Enabled debt constraint count","name":"enabled_count","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Lender-supported debt proceeds","name":"lender_proceeds","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"LTC binding","name":"ltc_binding","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"LTC enabled","name":"ltc_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"LTC support","name":"ltc_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"LTV binding","name":"ltv_binding","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"LTV enabled","name":"ltv_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"LTV support","name":"ltv_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Debt proceeds","name":"proceeds","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Requested proceeds binding","name":"requested_binding","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Requested proceeds enabled","name":"requested_enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Requested proceeds support","name":"requested_support","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["debt"],"notes":{},"calculation":{"nodes":[{"id":"input-debt_yield_enabled","label":"Debt yield enabled","kind":"input"},{"id":"input-debt_yield_support","label":"Debt yield support","kind":"input"},{"id":"input-dscr_enabled","label":"DSCR enabled","kind":"input"},{"id":"input-dscr_support","label":"DSCR support","kind":"input"},{"id":"input-ltc_enabled","label":"LTC enabled","kind":"input"},{"id":"input-ltc_support","label":"LTC support","kind":"input"},{"id":"input-ltv_enabled","label":"LTV enabled","kind":"input"},{"id":"input-ltv_support","label":"LTV support","kind":"input"},{"id":"input-requested_enabled","label":"Requested proceeds enabled","kind":"input"},{"id":"input-requested_support","label":"Requested proceeds support","kind":"input"},{"id":"output-debt_yield_enabled","kind":"output","label":"Debt yield enabled","rule":"Debt yield enabled","sources":[{"node":"input-debt_yield_enabled"}]},{"id":"step-sizing_debt_yield_calculated","label":"Sizing debt yield calculated","kind":"step","rule":"Higher of Debt yield support and 0","sources":[{"node":"input-debt_yield_support"}]},{"id":"step-value7","label":"Higher of Debt yield support and 0","kind":"step","rule":"Higher of Debt yield support and 0","sources":[{"node":"input-debt_yield_support"}]},{"id":"output-dscr_enabled","kind":"output","label":"DSCR enabled","rule":"DSCR enabled","sources":[{"node":"input-dscr_enabled"}]},{"id":"step-sizing_dscr_calculated","label":"Sizing DSCR calculated","kind":"step","rule":"Higher of DSCR support and 0","sources":[{"node":"input-dscr_support"}]},{"id":"step-value8","label":"Higher of DSCR support and 0","kind":"step","rule":"Higher of DSCR support and 0","sources":[{"node":"input-dscr_support"}]},{"id":"output-ltc_enabled","kind":"output","label":"LTC enabled","rule":"LTC enabled","sources":[{"node":"input-ltc_enabled"}]},{"id":"step-sizing_ltc_calculated","label":"Sizing ltc calculated","kind":"step","rule":"Higher of LTC support and 0","sources":[{"node":"input-ltc_support"}]},{"id":"step-value9","label":"Higher of LTC support and 0","kind":"step","rule":"Higher of LTC support and 0","sources":[{"node":"input-ltc_support"}]},{"id":"step-value2","label":"(LTV enabled > 1)","kind":"step","rule":"(LTV enabled > 1)","sources":[{"node":"input-ltv_enabled"}]},{"id":"output-ltv_enabled","kind":"output","label":"LTV enabled","rule":"LTV enabled","sources":[{"node":"input-ltv_enabled"}]},{"id":"step-sizing_ltv_calculated","label":"Sizing LTV calculated","kind":"step","rule":"Higher of LTV support and 0","sources":[{"node":"input-ltv_support"}]},{"id":"step-value10","label":"Higher of LTV support and 0","kind":"step","rule":"Higher of LTV support and 0","sources":[{"node":"input-ltv_support"}]},{"id":"step-enabled_count","label":"Enabled debt constraint count","kind":"step","rule":"(((((0 + Requested proceeds enabled) + LTV enabled) + LTC enabled) + DSCR enabled) + Debt yield enabled)","sources":[{"node":"input-requested_enabled"},{"node":"input-ltv_enabled"},{"node":"input-ltc_enabled"},{"node":"input-dscr_enabled"},{"node":"input-debt_yield_enabled"}],"calls":[{"function":"debt_flag_to_number","label":"Debt flag to number","bindings":[{"name":"flag","label":"Flag","value":"Requested proceeds enabled"}],"rule":"Requested proceeds enabled"},{"function":"debt_flag_to_number","label":"Debt flag to number","bindings":[{"name":"flag","label":"Flag","value":"LTV enabled"}],"rule":"LTV enabled"},{"function":"debt_flag_to_number","label":"Debt flag to number","bindings":[{"name":"flag","label":"Flag","value":"LTC enabled"}],"rule":"LTC enabled"},{"function":"debt_flag_to_number","label":"Debt flag to number","bindings":[{"name":"flag","label":"Flag","value":"DSCR enabled"}],"rule":"DSCR enabled"},{"function":"debt_flag_to_number","label":"Debt flag to number","bindings":[{"name":"flag","label":"Flag","value":"Debt yield enabled"}],"rule":"Debt yield enabled"}]},{"id":"output-requested_enabled","kind":"output","label":"Requested proceeds enabled","rule":"Requested proceeds enabled","sources":[{"node":"input-requested_enabled"}]},{"id":"step-sizing_requested_calculated","label":"Sizing requested calculated","kind":"step","rule":"Higher of Requested proceeds support and 0","sources":[{"node":"input-requested_support"}]},{"id":"step-value11","label":"Higher of Requested proceeds support and 0","kind":"step","rule":"Higher of Requested proceeds support and 0","sources":[{"node":"input-requested_support"}]},{"id":"output-debt_yield_support","kind":"output","label":"Debt yield support","rule":"if Debt yield enabled, then Higher of Debt yield support and 0, otherwise 0","sources":[{"node":"input-debt_yield_enabled"},{"node":"step-value7"}]},{"id":"output-dscr_support","kind":"output","label":"DSCR support","rule":"if DSCR enabled, then Higher of DSCR support and 0, otherwise 0","sources":[{"node":"input-dscr_enabled"},{"node":"step-value8"}]},{"id":"output-ltc_support","kind":"output","label":"LTC support","rule":"if LTC enabled, then Higher of LTC support and 0, otherwise 0","sources":[{"node":"input-ltc_enabled"},{"node":"step-value9"}]},{"id":"step-value1","label":"(((LTV enabled > 1) + LTV enabled) > 0)","kind":"step","rule":"(((LTV enabled > 1) + LTV enabled) > 0)","sources":[{"node":"step-value2"},{"node":"input-ltv_enabled"}]},{"id":"output-ltv_support","kind":"output","label":"LTV support","rule":"if LTV enabled, then Higher of LTV support and 0, otherwise 0","sources":[{"node":"input-ltv_enabled"},{"node":"step-value10"}]},{"id":"output-complete","kind":"output","label":"Debt sizing complete","rule":"(Enabled debt constraint count > 0)","sources":[{"node":"step-enabled_count"}]},{"id":"output-enabled_count","kind":"output","label":"Enabled debt constraint count","rule":"Enabled debt constraint count","sources":[{"node":"step-enabled_count"}]},{"id":"step-value6","label":"Conditional result using Requested proceeds enabled","kind":"step","rule":"if Requested proceeds enabled, then Sizing requested calculated, otherwise 0","sources":[{"node":"input-requested_enabled"},{"node":"step-sizing_requested_calculated"}]},{"id":"output-requested_support","kind":"output","label":"Requested proceeds support","rule":"if Requested proceeds enabled, then Higher of Requested proceeds support and 0, otherwise 0","sources":[{"node":"input-requested_enabled"},{"node":"step-value11"}]},{"id":"step-value0","label":"(((((LTV enabled > 1) + LTV enabled) > 0) + LTC enabled) > 0)","kind":"step","rule":"(((((LTV enabled > 1) + LTV enabled) > 0) + LTC enabled) > 0)","sources":[{"node":"step-value1"},{"node":"input-ltc_enabled"}]},{"id":"step-value5","label":"Conditional result using LTV enabled","kind":"step","rule":"if (LTV enabled > 0), then if ((LTV enabled > 1) > 0), then Lower of Conditional result using Requested proceeds enabled and Sizing LTV calculated, otherwise Sizing LTV calculated, otherwise Conditional result using Requested proceeds enabled","sources":[{"node":"input-ltv_enabled"},{"node":"step-value2"},{"node":"step-value6"},{"node":"step-sizing_ltv_calculated"}]},{"id":"step-value4","label":"Conditional result using LTC enabled","kind":"step","rule":"if (LTC enabled > 0), then if ((((LTV enabled > 1) + LTV enabled) > 0) > 0), then Lower of Conditional result using LTV enabled and Sizing ltc calculated, otherwise Sizing ltc calculated, otherwise Conditional result using LTV enabled","sources":[{"node":"input-ltc_enabled"},{"node":"step-value1"},{"node":"step-value5"},{"node":"step-sizing_ltc_calculated"}]},{"id":"step-value3","label":"Conditional result using DSCR enabled","kind":"step","rule":"if (DSCR enabled > 0), then if ((((((LTV enabled > 1) + LTV enabled) > 0) + LTC enabled) > 0) > 0), then Lower of Conditional result using LTC enabled and Sizing DSCR calculated, otherwise Sizing DSCR calculated, otherwise Conditional result using LTC enabled","sources":[{"node":"input-dscr_enabled"},{"node":"step-value0"},{"node":"step-value4"},{"node":"step-sizing_dscr_calculated"}]},{"id":"step-lender_proceeds","label":"Lender-supported debt proceeds","kind":"step","rule":"if (Debt yield enabled > 0), then if ((((((((LTV enabled > 1) + LTV enabled) > 0) + LTC enabled) > 0) + DSCR enabled) > 0) > 0), then Lower of Conditional result using DSCR enabled and Sizing debt yield calculated, otherwise Sizing debt yield calculated, otherwise Conditional result using DSCR enabled","sources":[{"node":"input-debt_yield_enabled"},{"node":"step-value0"},{"node":"input-dscr_enabled"},{"node":"step-value3"},{"node":"step-sizing_debt_yield_calculated"}]},{"id":"step-proceeds","label":"Debt proceeds","kind":"step","rule":"if Requested proceeds enabled, then Lower of Sizing requested calculated and Lender-supported debt proceeds, otherwise Lender-supported debt proceeds","sources":[{"node":"input-requested_enabled"},{"node":"step-sizing_requested_calculated"},{"node":"step-lender_proceeds"}]},{"id":"output-lender_proceeds","kind":"output","label":"Lender-supported debt proceeds","rule":"Lender-supported debt proceeds","sources":[{"node":"step-lender_proceeds"}]},{"id":"step-binding_constraint","label":"Binding debt constraint","kind":"step","rule":"if (Requested proceeds enabled × (Sizing requested calculated ≤ Debt proceeds)), then 1, otherwise if (LTV enabled × (Sizing LTV calculated ≤ Lender-supported debt proceeds)), then 2, otherwise if (LTC enabled × (Sizing ltc calculated ≤ Lender-supported debt proceeds)), then 3, otherwise if (DSCR enabled × (Sizing DSCR calculated ≤ Lender-supported debt proceeds)), then 4, otherwise if (Debt yield enabled × (Sizing debt yield calculated ≤ Lender-supported debt proceeds)), then 5, otherwise 0","sources":[{"node":"input-requested_enabled"},{"node":"step-sizing_requested_calculated"},{"node":"step-proceeds"},{"node":"input-ltv_enabled"},{"node":"step-sizing_ltv_calculated"},{"node":"step-lender_proceeds"},{"node":"input-ltc_enabled"},{"node":"step-sizing_ltc_calculated"},{"node":"input-dscr_enabled"},{"node":"step-sizing_dscr_calculated"},{"node":"input-debt_yield_enabled"},{"node":"step-sizing_debt_yield_calculated"}]},{"id":"output-debt_yield_binding","kind":"output","label":"Debt yield binding","rule":"(Debt yield enabled × (Higher of Debt yield support and 0 ≤ Debt proceeds))","sources":[{"node":"input-debt_yield_enabled"},{"node":"step-value7"},{"node":"step-proceeds"}]},{"id":"output-dscr_binding","kind":"output","label":"DSCR binding","rule":"(DSCR enabled × (Higher of DSCR support and 0 ≤ Debt proceeds))","sources":[{"node":"input-dscr_enabled"},{"node":"step-value8"},{"node":"step-proceeds"}]},{"id":"output-ltc_binding","kind":"output","label":"LTC binding","rule":"(LTC enabled × (Higher of LTC support and 0 ≤ Debt proceeds))","sources":[{"node":"input-ltc_enabled"},{"node":"step-value9"},{"node":"step-proceeds"}]},{"id":"output-ltv_binding","kind":"output","label":"LTV binding","rule":"(LTV enabled × (Higher of LTV support and 0 ≤ Debt proceeds))","sources":[{"node":"input-ltv_enabled"},{"node":"step-value10"},{"node":"step-proceeds"}]},{"id":"output-proceeds","kind":"output","label":"Debt proceeds","rule":"Debt proceeds","sources":[{"node":"step-proceeds"}]},{"id":"output-requested_binding","kind":"output","label":"Requested proceeds binding","rule":"(Requested proceeds enabled × (Higher of Requested proceeds support and 0 ≤ Debt proceeds))","sources":[{"node":"input-requested_enabled"},{"node":"step-value11"},{"node":"step-proceeds"}]},{"id":"output-binding_constraint","kind":"output","label":"Binding debt constraint","rule":"Binding debt constraint","sources":[{"node":"step-binding_constraint"}]}],"topics":[{"label":"Debt sizing decision","results":["output-binding_constraint","output-complete","output-debt_yield_binding","output-debt_yield_enabled","output-debt_yield_support","output-dscr_binding","output-dscr_enabled","output-dscr_support","output-enabled_count","output-lender_proceeds","output-ltc_binding","output-ltc_enabled","output-ltc_support","output-ltv_binding","output-ltv_enabled","output-ltv_support","output-proceeds","output-requested_binding","output-requested_enabled","output-requested_support"]}]},"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"},{"kind":"recipe","id":"multifamily_development","key":"sha256:bd5fced62c36e2251666c32d8cd629753c9f945e2292b401f90f46ce957e1bcd"},{"kind":"recipe","id":"single_family_development","key":"sha256:7cbf7a6885faf03497d0f91f19204cb9d504c05b3623fa3a362281037883288e"}]}
