Question 1011290
Depending how you want to calculate,

p for principal
r for the rate of interest as a decimal value
x for how many years  (and assuming only yearly compounding)


Resulting value would be   {{{p*(1+r)^x}}}.


How MUCH interest earned?
{{{p(1+r)^x-p}}}
or
{{{p((1+r)^x-1)}}}