All components

Term loan

Fund and service one fixed-rate loan.

How it works

Term loan (9)
  1. Amortization Domain

    Lower of (Amortization − 1) and (600 − Amortization)

  2. Balance

    ((((Months · Opening + Months · Funding) − Months · Repayment) − Months · Balloon) − Months · State)

  3. Interest Only Bound

    (Interest Only − Term)

  4. Interest Only Domain

    Lower of Interest Only and (120 − Interest Only)

  5. Payment

    Payment

  6. Principal Domain

    Principal

  7. Rate Domain

    Lower of Rate and (1 − Rate)

    Uses
  8. Settled

    if (consecutive values from 0 to 120 ≥ Term), then Months · State, otherwise 0

  9. Term Domain

    Lower of (Term − 1) and (120 − Term)

    Uses
Loan period (10)
  1. Balloon

    Months · Balloon

  2. Funding

    Months · Funding

  3. Interest

    Months · Interest

  4. Opening

    Months · Opening

  5. Repayment

    Months · Repayment

  6. Service

    Months · Service

  7. Balloon Total

    Sum(Months · Balloon)

  8. Closing

    Months · State

    Uses
  9. Interest Total

    Sum(Months · Interest)

  10. Nonnegative

    Months · State

    Uses
Calculation steps (4)
  1. (Rate ÷ 12)

    (Rate ÷ 12)

    Uses
  2. (((Rate ÷ 12) × Amortization) < 0.001)

    (((Rate ÷ 12) × Amortization) < 0.001)

  3. Payment

    (Principal × if (((Rate ÷ 12) × Amortization) < 0.001), then (((1 ÷ Amortization) + (((Rate ÷ 12) × (Amortization + 1)) ÷ (2 × Amortization))) + ((((Rate ÷ 12) ^ 2) × ((Amortization ^ 2) − 1)) ÷ (12 × Amortization))), otherwise ((Rate ÷ 12) ÷ if (((Rate ÷ 12) × Amortization) < 0.001), then 1, otherwise (1 − ((1 + (Rate ÷ 12)) ^ (Amortization × -1)))))

  4. Months

    Run Loan period for each month. Carry the closing state into the next period.

    Component · Loan period

    Roll one month of loan funding, interest, principal repayment, and maturity settlement.

    Argument values
    Inputs Interest Only
    Interest Only
    Inputs Month
    consecutive values from 0 to 120
    Inputs Payment
    Payment
    Inputs Principal
    Principal
    Inputs Rate
    (Rate ÷ 12)
    Inputs Term
    Term
    State
    Start at 0. For the next period, use the previous State.
Conventions (6)
  • Fund the full principal at opening; opening has no interest or repayment.
  • Pay monthly in arrears. The periodic interest rate is the nominal annual rate divided by 12.
  • Start the amortization period after the interest-only period; keep the scheduled payment constant.
  • Cap scheduled principal at the outstanding balance, then repay the remainder at maturity.
  • Exclude fees, reserves, prepayments, additional draws, and day-count adjustments.
  • Retain full precision in calculations; round only for display.
Checks (9)
  • Interest only bound. Interest-only months must not exceed the loan term.
  • Balance. Opening principal plus funding less repayments must equal closing principal.
  • Settled. Principal must be fully repaid at maturity and remain zero.
  • Nonnegative. Principal must remain nonnegative.
  • Principal domain. The input must be at least 0.
  • Rate domain. The input must be from 0 through 1.
  • Term domain. The input must be from 1 through 120.
  • Interest only domain. The input must be from 0 through 120.
  • Amortization domain. The input must be from 1 through 600.

Inputs and outputs

Inputs (5)
Inputs
NameUnitApplies to
AmortizationUnitlessSingle value
Interest OnlyUnitlessSingle value
PrincipalDollarsSingle value
RatePercentSingle value
TermUnitlessSingle value
Outputs (19)
Outputs
NameUnitApplies to
Amortization DomainUnitlessSingle value
BalanceDollarsMonth
BalloonDollarsMonth
Balloon TotalDollarsSingle value
ClosingDollarsMonth
FundingDollarsMonth
InterestDollarsMonth
Interest Only BoundUnitlessSingle value
Interest Only DomainUnitlessSingle value
Interest TotalDollarsSingle value
NonnegativeDollarsMonth
OpeningDollarsMonth
PaymentDollarsSingle value
Principal DomainDollarsSingle value
Rate DomainPercentSingle value
RepaymentDollarsMonth
ServiceDollarsMonth
SettledDollarsMonth
Term DomainUnitlessSingle value

Libraries