You and your spouse plan to retire and buy a house in a retirement village

You and your spouse plan to retire and buy a house in a retirement village in

10 years. You have estimated that you will need $500,000 in 10 years. How much will you need to invest today as a lump sum, assuming that you can earn 6% compounded semi-annually (2 times each year), to have $500,000 in ten years?