Charles inherited $500,000 from his grandfather. He decides to invest the money into a fund that has 4% annual interest. If the interest is compounded continuously, what is the total amount that is compounded annually?