Determine the final value for Compound interest problems