The calculator compounds month by month. Each month it multiplies the balance by the monthly return (the annual figure divided by twelve) and then adds your contribution:
balance = balance × (1 + annual return / 12) + contribution
Repeated once for every month in your horizon. The figure shown as "generated by compounding" is simply the final value minus everything you put in, and it is the part you would not have had by leaving the money still.
