计算复利收益,支持定期追加投资和多种复利频率
A = P(1 + r/n)^(nt) + PMT × [((1 + r/n)^(nt) - 1) / (r/n)]
其中:A = 最终金额,P = 本金,r = 年利率,n = 每年复利次数,t = 投资年数,PMT = 定期追加投资