我不知道如何在PHP中使用Recurring Deposits公式来计算rd.Please给我代码来计算Recurring Deposits。
$M;
$R=200;
$n=4;
$i=11;
M =R [ (1+i)n – 1]
--------------------
1- (1+i) -1/3
M = Maturity value
R = Monthly installment
n = Number of quarters
i = Rate of interest/400
echo $m;
?>
答案 0 :(得分:1)
$M = ($R * ((($i+1)*$n)-1))/(1-($i+1)-(1/3));
但正如Eliyahu所说 - 你需要首先学习变量和操作的基础知识;)
完整代码如下:
$R=200;
$n=4;
$i=11;
$M = ($R * ((($i+1)*$n)-1))/(1-($i+1)-(1/3));
echo $M;