The S&P 500 returns average 7% in real dollars (not inflated dollars).
My calculation makes that about $9m over 40 years.