Calculating interest on both the amount borrowed plus previous interest.
To calculate: work out the interest for the first period, add it to the total, and then calculate the interest for the next period, and so on, like this (but there are faster methods):