You are promised $1 million in 20 years. If the inflation rate averages 6 percent annually over the next 20 years, what is the real value of this $1 million in today's dollars?
Well that would depend on how often the money is compounding but to make it easy I will say it is compounding annually.
P(1.06^20)=1000000
p=1000000/(1.06^20)
1000000(1.0620)=311804.7268860845945912