結果 : compound interest function in python