How compounding works
With compound interest, the interest you earn is added to the balance and then earns interest itself. $10,000 at 7% earns $700 in the first year, but in the second year it earns 7% of $10,700, which is $749. The difference is small at first and grows every year, which is why the bars in the chart curve upwards.
The formula for a lump sum is A = P(1 + r/n)^(n×t). This calculator also adds a deposit at the end of every month, and each deposit grows for the months it is invested.