@travishorn/financejs
    Preparing search index...

    Function pduration

    • Calculates the number of periods required by an investment to reach a specified value.

      Parameters

      • rate: number

        Rate is the interest rate per period.

      • pv: number

        The present value of the investment.

      • fv: number

        The future value of the investment.

      Returns number

      the number of periods required

      if rate is less than or equal to zero

      if pv is zero

      pduration(0.025, 2000, 2200); // 3.86