@travishorn/financejs
    Preparing search index...

    Function calculatePeriodsToTarget

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

      Parameters

      • options: PeriodsToTargetOptions

        The periods-to-target calculation options.

      Returns number

      The number of periods required.

      If rate is less than or equal to zero.

      If presentValue is zero.

      calculatePeriodsToTarget({
      rate: 0.025,
      presentValue: 2000,
      futureValue: 2200,
      }); // 3.859866162622662