Compounding Intervals

In the real world, interest is credited to your account more often than once a year. A checking account paying 5% annual interest, for example, may earn interest every day. This means that every day, interest is paid into your account at the rate of 1/365 of 5%. In other words, the effect of the interest is spread across the entire year.

Let's see what would happen if annual interest were compounded bi-annually. For example, if instead of getting 6% interest at the end of the year, what would happen if you got 3% interest in the middle of the year and then another 3% at the end of the year?

Let's repeat the analysis that we did when we first considered compound interest. If we invest an amount P at an annual rate of R, then after six months we would have P(1+R/2). At the end of a year, then, we would have P(1+R/2)(1+R/2). Try to come up with a formula for the amount of money in the account after n full years.

Click here for the answer

Now suppose that compounding is quarterly: four times per year. Can you come up with a formula for the amount of money in the account after n full years?

Click here for the answer

You should notice a pattern building up. Using Maple, define a function called intervals that takes four parameters: the initial balance, the interest rate, the number of years for which the balance will be invested, and the number of times per year that interest is compounded. The function should calculate the amount of money that will be in the account at the end of the specified interval.

Click here for the answer

Now we can calculate the effects of more frequent compounding. Let's compare receiving 6% interest paid once per year vs. 6% interest compounded daily:

EXECUTEcompound(1000, .06, 1);

EXECUTEintervals(1000, .06, 1, 365);

Can you explain why the second result is larger than the first?


Joseph L. Zachary
Hamlet Project
Department of Computer Science
University of Utah