@travishorn/financejs
    Preparing search index...

    Function calculatePayment

    • Calculates the payment for a loan based on constant payments and a constant interest rate.

      Remarks:

      • The payment returned by this function includes principal and interest but no taxes, reserve payments, or fees sometimes associated with loans.
      • The payment is negative when it represents an outflow (e.g. repaying a loan received as a positive presentValue) and positive when it represents an inflow, following standard cash-flow sign conventions.
      • A result of -0 is normalized to 0.

      Parameters

      • options: PaymentOptions

        The payment calculation options.

      Returns number

      The periodic payment amount.

      calculatePayment({
      rate: 0.08 / 12,
      periods: 10,
      presentValue: 10000,
      }); // -1037.0320893591638
      calculatePayment({
      rate: 0.006875,
      periods: 60,
      presentValue: -150000,
      timing: "beginning",
      }); // 3038.547734125