The calculator grows your current savings and each monthly contribution at the annual return you choose, compounded monthly, until your retirement age. It then shows the result in today's dollars by removing inflation, and the monthly income the 4% rule would suggest.
Diversified stock portfolios have historically returned about 7% a year after inflation over long periods, with large swings. Many planners use 5% to 6% to stay conservative.
A guideline that withdrawing 4% of your savings in the first year of retirement, then adjusting for inflation, has historically lasted about 30 years. It is a starting point, not a guarantee.
This is an educational projection, not investment advice. Consult a licensed financial adviser for your situation.