Im trying to use an excel formula into my javascript code but cannot get the correct result, here is the formula in excel:
(C4-(C8/C6))*(1-((1+(C5/12))^-C6))/(C5/12)+C8+C7
and how i try it in javascript:
(737-(50000/300))*(1-(Math.pow((1+(0.02/12)),-300)))/(0.02/12)+50000+10000
or
(737-(50000/300))*(1-((1+(0.02/12))**-300))/(0.02/12)+50000+10000
Both attempt give me same result but this result is not the same as in excel, any idea?
Javascript give me 194558.80507389922 but excel give me 191516,666