The formula to calculate the amount of a value that is subject to a compounded interest is shown below:

Where A is the final amount, P is the principal invested, r is the annual interest rate, n is the times it get compounded in a year and t is the elapsed time.
When we need to compound an amount quarterly, it will be compounded 4 times in a year, therefore n is equal to 4.

When we need to compound it monthly, it will be compounded 12 times in a year, therefore n is equal to 12.

When we need to compound it continuously the formula will change to the one shown below:

Applying the data we have:
