You think you can live of

You think you can live of

You think you can live off of $40,000 per year in retirement (45 years from now). You also expect to be retired for 20 years before you die. The current interest rate is 7%. If you wanted to invest all of the money you will need for retirement right now, how much money will you need to invest?