Hey all i am trying to figure out how to go about calculating this formula from an Excel 2007 fx to javascript:
 =(B12*'ROI endo only'!B5)/(1-(1+Data!B12)^(-Data!B13))
 WHERE
   B12 = 0.49%
   B5  = 99,500
   B13 = 48
So far i have this as my javascript code:
 var theCalc = (0.49 * 99500) / (1 - (1 + 0.49)^(-48));
 alert(theCalc);
Though, i am not getting the correct result as what i get on the spreadsheet. The spreadsheet has a value of 2,332 and i am getting -1015.72916... from the javascript code.
Any help would be great in solving my problem :o)
UPDATE
 var theCalc = (0.0049 * 99500) / (1 - Math.pow((1 + 0.0049), -48));
David