The compound interest formula is an equation that lets you estimate how much you will earn with your savings account. It's quite complex because it takes into consideration not only the annual interest rate and the number of years but also the number of times the interest is compounded per year.
The formula for annual compound interest is as follows:
Where:
Fv = future value of the investment
P = initial balance or the value of the investment
r = the annual interest rate (in decimal)
m = the number of times the interest is compounded per year (compounding frequency)
t = the numbers of years the money is invested for
From the problem we have:
With Fv we have the final value to know when we win we have to subtract Fv-P
$ 15,892 earned from the 2 years invested