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