All components

Yield Maintenance Penalty

Calculate the bounded yield-maintenance penalty at one loan payoff.

How it works

Yield Maintenance Penalty (1)
  1. Penalty

    ((((Positions in series(Payoff) ≥ Payoff Month) × (Positions in series(Payoff) ≤ Payoff Month)) × Higher of (Value at index(Payoff, Payoff Month) × (Minimum Penalty ÷ 10,000)) and (Sum(Periods · Coupon Value) − Sum(Periods · Base Value))) × (Payoff Month < (0 + Yield Maintenance Months)))

    Model function · Basis points to percent

    Argument values
    Basis
    10,000
    Basis points
    Minimum Penalty
Calculation steps (4)
  1. Positions in series(Payoff)

    Positions in series(Payoff)

    Uses
  2. Value at index(Payoff, Payoff Month)

    Value at index(Payoff, Payoff Month)

  3. (0 + Yield Maintenance Months)

    (0 + Yield Maintenance Months)

    Model function · Debt add duration

    Argument values
    Duration
    Yield Maintenance Months
    Month
    0
  4. Periods

    Run Yield Maintenance Period for each month. Carry the closing state into the next period.

    Model function · Basis points series to percent

    Argument values
    Basis
    10,000
    Basis points
    Base Rate

    Component · Yield Maintenance Period

    Discount one contractual yield-maintenance period.

    Argument values
    Active
    ((((Value at index(Payoff, Payoff Month) > 0) × (Yield Maintenance Months > 0)) × (Positions in series(Payoff) > Payoff Month)) × (Positions in series(Payoff) ≤ (0 + Yield Maintenance Months)))
    Balance
    Value at index(Payoff, Payoff Month)
    Base Rate
    (Base Rate ÷ 10,000)
    Coupon
    (Value at index(Rate, Payoff Month) × 0.08333333333333333)
    Prior Discount
    Start at 1. For the next period, use the previous Discount.

Inputs and outputs

Inputs (6)
Inputs
NameUnitApplies to
Base RateBasis pointsMonth
Minimum PenaltyBasis pointsSingle value
PayoffDollarsMonth
Payoff MonthMonthsSingle value
RatePercentMonth
Yield Maintenance MonthsmonthsSingle value
Outputs (1)
Outputs
NameUnitApplies to
PenaltyDollarsMonth

Recipes using this calculation

Libraries