P = Principal
i = nominal annual interest rate
n = number of compounding periods
Compound interest (or compounding interest) is interest calculated on the initial principal and also on the accumulated interest of previous periods of a deposit or loan.