Simple interest on a certain sum of money for 4 years at 4% per annum exceeds the compound interest on the same sum for 3 years at 5 percent per annum by Rs. 228. Find the sum.