Compound interest (or compounding interest) is interest calculated on the initial principal, which also includes all of the accumulated interest of previous periods of a deposit or loan.
P = principal amount (the initial amount you borrow or deposit)
r = annual rate of interest (as a deci...