Finding the time in a word problem on compound interest