View source: R/calc_purchasing_power.R
calc_purchasing_power | R Documentation |
Calculates changes in purchasing power over time, taking into account the real interest rate.
calc_purchasing_power(x, years, real_interest_rate)
x |
A numeric. The initial amount of money. |
years |
A numeric. The number of years. |
real_interest_rate |
A numeric. The yearly real interest rate. |
The real interest rate is the interest rate after inflation. If negative (e.g. equal to the average yearly inflation rate) it can show diminishing purchasing power over time. If positive, it can show increasing purchasing power over time, and effect of compounding interest on the purchasing power.
A numeric. The purchasing power.
calc_purchasing_power(x = 10, years = 30, real_interest_rate = -0.02)
calc_purchasing_power(x = 10, years = 30, real_interest_rate = 0.02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.