inflatedValue

inflatedValue computes the inflation adjusted value given a base value, inflation rate, and the number of time periods. The formula is b*(1+i^k-k+k*(1-i^k)/(1-i)) where b is the base-value, i is the inflation-rate, and k is the number of time-periods from current period.

inflatedValue(double baseValue, double inflationRate, double timePeriods)