Saving $5000 per year for 75 years compounded annually at 6.2% would net you a little over $8M. An unremarkable return on an unremarkable savings rate.
My program adds 5000 nominal dollars to a savings account every 'year' and then applies a 6.2% interest rate once a 'year'.
Where is the '2018 dollars'? The account takes the same nominal deposit at year 0 as at year 76.
Where is the adjustment for inflation in the interest rate? The account adds 6.2% every year regardless of that years inflation.
EDIT: The program obviously cannot account for inflation since it has no notion of inflation. If the secretary were depositing 5000 '2018 dollars' in 1947, then the nominal deposit would have to be something like $500. Inflation is usually positive, so money in the past is worth more.
6.2% would be inflation adjusted returns. Actual inflation adjusted returns were 7.4%. So investing the equivalent of $5k each year from then until now (so starting at $350 or whatever) would yield >$8.2M.
You are neglecting inflation. There was no way this secretary was saving $5000 a year 75 years ago - her yearly salary was mostly likely around that amount.