I have a programming assignment in C# from my professor that involves the Rule of 72. He clearly says that in order to find the amount of time in years it will take for an amount to double, you have to divide the rate into 72, so it would look like 72/r. Now my issue is, he does not say how to find the actual doubling time. This part is driving me crazy. How can you find the ACTUAL doubling time when you only have the rate? For those that want to see what the assignment is ill show you.
Assignment 5
Rule of 72: This rule is used to approximate the time required for prices to double due to inflation.
If the inflation rate is r % then the Rule of 72 estimates that prices will double in 72/r years. For instance at tan inflation rate of 6% prices double in about 72/6 or 12 years. Write a program to test the accuracy of this rule. For each interest rate from 1% to 20% the program should display the rounded value of 72/r and the rounded value of the actual number of years required for prices to double at an r% inflation rate. Assume prices increase at the end of each year.
Output Window:
Interest rate: 1.00%
Rule of 72 doubling time: 72 years to double.
Actual Doubling time: 70 years to double.
Interest rate: 2.00%
Rule of 72 doubling time: 36 years to double.
Actual Doubling time: 36 years to double.
Interest rate: 3.00%
Rule of 72 doubling time: 24 years to double.
Actual Doubling time: 24 years to double.
I tried to group the output together but for some reason I cant. I hope this doesnt upset anyone willing to help me. SO right now, all i have is 72/r to give me the doubling years according to the rule of 72. How do i find the actual?
The process that is modeled by the rule of 72 is Compound Interest, which works like this: during each compounding period, the money in your account increases by some percentage; this increase is pulled back into your account, where next time around, it too will be increased by some percentage.
So if you have $\yen1,000,000$ in your account and it grows at $5\%$/year, then after 1 year you'll have $\yen1,000,000\times1.05=\yen1,050,000$; after two years you'll have $\yen1,050,000\times1.05=\yen1,102,500$; and so on and so forth. Doing this, we discover that after 15 multiplications -- 15 years -- we're at $\yen2,078,928$, and our money has doubled. This matches up pretty well with the rule of 72, which says that it should take $14.4$ years.
Your likely goal in this problem is to apply this multiplication over and over until you find that your money has doubled, and say how many repetitions it took. Note that it doesn't matter how much money you start with, so your best bet is to pretend you start with 1 money.
Of course, it's also possible to come up with an exact doubling time without loops: $t=\ln(2)/\ln(1+r)$. The rule of 72 comes from the fact that, for small $r$, $\ln(1+r)\approx r$. It also includes an adjustment so it works with percentages, and another adjustment so it's nicer to work with in your head.