Calculate the compound interest earned on a principal over time.
The principal. (P>0)
P>0
The interest rate. (0≤r≤1)
0≤r≤1
The number of times compounded per period. (n is an integer and n>0)
n
n>0
The number of periods. (t is an integer and t>0)
t
t>0
Returns an object with the accrued amount and interest earned.
0.4.2
Calculate the compound interest earned on a principal over time.