Finding the final amount in a word problem on compound interest