I have two excell sums that I'm trying to replicate in PHP:
A. =SUM(150000*(1+0.06)^25) outputs = 643780.608
B. =SUM(80000+(150000*0.09^25))*(1+0.06)^25 outputs = 343349.6576
I've attempted [A] using the following:
$v1 = (150000*(1+0.06));
$v2 = pow($v1,25);
$v2 ouputs = 1.0837474984052E+130
Not sure where im going wrong so if someone could help me replicate those two SUM that would be great.