All components

Select Prepayment Penalty

Select yield maintenance, exit fee, or open-window treatment for one payoff.

How it works

Select Prepayment Penalty (1)
  1. Penalty

    (((Positions in series(Yield Maintenance) ≥ Payoff Month) × (Positions in series(Yield Maintenance) ≤ Payoff Month)) × if (Payoff Month ≥ (0 + (Term Months − Higher of Payoff Window Months and 0))), then 0, otherwise if (Payoff Month ≥ (0 + Yield Maintenance Months)), then (Commitment × (Exit Fee ÷ 10,000)), otherwise Value at index(Yield Maintenance, Payoff Month))

    Model function · Debt add duration

    Argument values
    Duration
    (Term Months − Higher of Payoff Window Months and 0)
    Month
    0

    Model function · Debt add duration

    Argument values
    Duration
    Yield Maintenance Months
    Month
    0

    Model function · Basis points to percent

    Argument values
    Basis
    10,000
    Basis points
    Exit Fee

Inputs and outputs

Inputs (7)
Inputs
NameUnitApplies to
CommitmentDollarsSingle value
Exit FeeBasis pointsSingle value
Payoff MonthMonthsSingle value
Payoff Window MonthsmonthsSingle value
Term MonthsmonthsSingle value
Yield MaintenanceDollarsMonth
Yield Maintenance MonthsmonthsSingle value
Outputs (1)
Outputs
NameUnitApplies to
PenaltyDollarsMonth

Recipes using this calculation

Libraries