結果 : function of compound interest