The difference between earned interest on the same amount invested for 2 years on compound interest and simple interest is Rs. 76. If interest rates are 4% per year, then calculate the amount invested.