A = final amount P = initial principal balance r = annual interest rate (%) n = number of times interest applied per year t = number of years