Find the future value of a lump sum under compound interest (principal times the growth factor) and the total interest earned.
本金按年利率 r、每年 n 次複利、t 年後的終值。