All components

Debt sizing decision

Select the first minimum enabled debt support in canonical lender order.

How it works

Debt sizing decision (20)
  1. Binding debt constraint

    Binding debt constraint

  2. Debt sizing complete

    (Enabled debt constraint count > 0)

  3. Debt yield binding

    (Debt yield enabled × (Higher of Debt yield support and 0 ≤ Debt proceeds))

  4. Debt yield enabled

    Debt yield enabled

  5. Debt yield support

    if Debt yield enabled, then Higher of Debt yield support and 0, otherwise 0

  6. DSCR binding

    (DSCR enabled × (Higher of DSCR support and 0 ≤ Debt proceeds))

  7. DSCR enabled

    DSCR enabled

  8. DSCR support

    if DSCR enabled, then Higher of DSCR support and 0, otherwise 0

  9. Enabled debt constraint count

    Enabled debt constraint count

  10. Lender-supported debt proceeds

    Lender-supported debt proceeds

  11. LTC binding

    (LTC enabled × (Higher of LTC support and 0 ≤ Debt proceeds))

  12. LTC enabled

    LTC enabled

  13. LTC support

    if LTC enabled, then Higher of LTC support and 0, otherwise 0

  14. LTV binding

    (LTV enabled × (Higher of LTV support and 0 ≤ Debt proceeds))

  15. LTV enabled

    LTV enabled

  16. LTV support

    if LTV enabled, then Higher of LTV support and 0, otherwise 0

  17. Debt proceeds

    Debt proceeds

  18. Requested proceeds binding

    (Requested proceeds enabled × (Higher of Requested proceeds support and 0 ≤ Debt proceeds))

  19. Requested proceeds enabled

    Requested proceeds enabled

  20. Requested proceeds support

    if Requested proceeds enabled, then Higher of Requested proceeds support and 0, otherwise 0

Calculation steps (21)
  1. Sizing debt yield calculated

    Higher of Debt yield support and 0

  2. Higher of Debt yield support and 0

    Higher of Debt yield support and 0

  3. Sizing DSCR calculated

    Higher of DSCR support and 0

  4. Higher of DSCR support and 0

    Higher of DSCR support and 0

  5. Sizing ltc calculated

    Higher of LTC support and 0

  6. Higher of LTC support and 0

    Higher of LTC support and 0

  7. (LTV enabled > 1)

    (LTV enabled > 1)

  8. Sizing LTV calculated

    Higher of LTV support and 0

  9. Higher of LTV support and 0

    Higher of LTV support and 0

  10. Enabled debt constraint count

    (((((0 + Requested proceeds enabled) + LTV enabled) + LTC enabled) + DSCR enabled) + Debt yield enabled)

    Model function · Debt flag to number

    Argument values
    Flag
    Requested proceeds enabled

    Model function · Debt flag to number

    Argument values
    Flag
    LTV enabled

    Model function · Debt flag to number

    Argument values
    Flag
    LTC enabled

    Model function · Debt flag to number

    Argument values
    Flag
    DSCR enabled

    Model function · Debt flag to number

    Argument values
    Flag
    Debt yield enabled
  11. Sizing requested calculated

    Higher of Requested proceeds support and 0

  12. Higher of Requested proceeds support and 0

    Higher of Requested proceeds support and 0

  13. (((LTV enabled > 1) + LTV enabled) > 0)

    (((LTV enabled > 1) + LTV enabled) > 0)

  14. Conditional result using Requested proceeds enabled

    if Requested proceeds enabled, then Sizing requested calculated, otherwise 0

  15. (((((LTV enabled > 1) + LTV enabled) > 0) + LTC enabled) > 0)

    (((((LTV enabled > 1) + LTV enabled) > 0) + LTC enabled) > 0)

  16. Conditional result using LTV enabled

    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

  17. Conditional result using LTC enabled

    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

  18. Conditional result using DSCR enabled

    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

  19. Lender-supported debt proceeds

    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

  20. Debt proceeds

    if Requested proceeds enabled, then Lower of Sizing requested calculated and Lender-supported debt proceeds, otherwise Lender-supported debt proceeds

  21. Binding debt constraint

    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

Inputs and outputs

Inputs (10)
Inputs
NameUnitApplies to
Debt yield enabledFlagSingle value
Debt yield supportDollarsSingle value
DSCR enabledFlagSingle value
DSCR supportDollarsSingle value
LTC enabledFlagSingle value
LTC supportDollarsSingle value
LTV enabledFlagSingle value
LTV supportDollarsSingle value
Requested proceeds enabledFlagSingle value
Requested proceeds supportDollarsSingle value
Outputs (20)
Outputs
NameUnitApplies to
Binding debt constraintUnitlessSingle value
Debt sizing completeFlagSingle value
Debt yield bindingFlagSingle value
Debt yield enabledFlagSingle value
Debt yield supportDollarsSingle value
DSCR bindingFlagSingle value
DSCR enabledFlagSingle value
DSCR supportDollarsSingle value
Enabled debt constraint countUnitlessSingle value
Lender-supported debt proceedsDollarsSingle value
LTC bindingFlagSingle value
LTC enabledFlagSingle value
LTC supportDollarsSingle value
LTV bindingFlagSingle value
LTV enabledFlagSingle value
LTV supportDollarsSingle value
Debt proceedsDollarsSingle value
Requested proceeds bindingFlagSingle value
Requested proceeds enabledFlagSingle value
Requested proceeds supportDollarsSingle value

Recipes using this calculation

Libraries