@travishorn/financejs
    Preparing search index...

    Function calculateInterestPayment

    • Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.

      Remarks:

      • Make sure that you are consistent about the units you use for specifying rate and periods. If you make monthly payments on a four-year loan at 12 percent annual interest, use 0.12 / 12 for rate and 4 * 12 for periods. If you make annual payments on the same loan, use 0.12 for rate and 4 for periods.
      • For all the arguments, cash you pay out, such as deposits to savings, is represented by negative numbers. Cash you receive, such as dividend checks, is represented by positive numbers.

      Parameters

      • options: InterestPaymentOptions

        The interest payment calculation options.

      Returns number

      The interest payment for the specified period.

      When period is outside the valid range.

      calculateInterestPayment({
      rate: 0.1 / 12,
      period: 1,
      periods: 3,
      presentValue: 8000,
      }); // -66.66666666666667
      calculateInterestPayment({
      rate: 0.02,
      period: 5,
      periods: 5,
      presentValue: -608926,
      futureValue: 37115,
      }); // 3121.015754729151