If you put $5,000/ year into an IRA and get 4% per year, what would you have after 40 years?

5000 * 1.04^40 = 5000 * 4.801020628

=24,005.10