How does a compound interest calculator work?
It takes the principal and grows it in repeated steps. Each step multiplies the balance by one plus the rate divided by the number of compounds per year, and there are as many steps as compounds per year times years.