Investment, PV = $50000
Interest = 4%
Money at the end of 5 years = 50000 * (1+4%)^5 = $60833, if money is deposited at the beginning of the first year.
Money at the end of 5 years = 50000 * (1+4%)^4 = $58493, if money is deposited at the end of the first year.