@travishorn/financejs
    Preparing search index...

    Function calculateModifiedInternalRateOfReturn

    • Calculates the modified internal rate of return for a series of periodic cash flows. Considers both the cost of the investment and the interest received on reinvestment of cash.

      Remarks:

      • Uses the order of values to interpret the order of cash flows. Be sure to enter your payment and income values in the sequence you want and with the correct signs (positive values for cash received, negative values for cash paid).
      • If n is the number of cash flows in values, frate is the financeRate, and rrate is the reinvestRate, then the equation is: ((-NPV(rrate, values[positive]) * (1 + rrate)) / (NPV(frate, values[negative]) * (1 + frate)))^(1 / (n - 1)) - 1

      Parameters

      • options: ModifiedInternalRateOfReturnOptions

        The modified internal rate of return calculation options.

      Returns number

      The modified internal rate of return.

      If cashFlows is not an array of at least two elements, or if there are not both positive and negative cash flows.

      If financeRate or reinvestRate is not a number.

      calculateModifiedInternalRateOfReturn({
      cashFlows: [-120000, 39000, 30000, 21000, 37000, 46000],
      financeRate: 0.1,
      reinvestRate: 0.12,
      }); // 0.1260941303659051
      calculateModifiedInternalRateOfReturn({
      cashFlows: [-120000, 39000, 30000, 21000],
      financeRate: 0.1,
      reinvestRate: 0.12,
      }); // -0.048044655249980806