How it is calculated
Each month the balance earns the monthly rate (the annual rate divided by 12), and the deposit is added at the end of the month. The interest then earns interest of its own, which is why the curve gets steeper with time. The total is the starting amount grown for all the months plus every deposit grown for the months it was in the account. This is the same method as the SEC’s Investor.gov calculator with monthly compounding.
balance = P × (1 + r)^n + PMT × ((1 + r)^n − 1) ÷ r, where r = annual rate ÷ 12 and n = number of months


