calculate compound interest for $1000 at 5% over 3 years