The formula for compound interest is given by $$v=p(1+\frac rn)^{nt}$$where:
-
$v$ is the value of the money after the interest is added -
$p$ is the principal amount of money put in -
$r$ is the interest rate' -
$n$ is the number of times the interest is compounded in a year -
$t$ is the number of years over which the interest is accumulated on the principal