Calculating Average Compound Interest