Relative Content

Tag Archive for sqlexcel-formula

Present Value Error on SQL calculation different From Excel Calculation

I created a function on SQL to calculate Present Value SET @pv = -(@pmt * (1 + @rate * @type) * (1 – POWER(1 + @rate, -@nper)) / @rate + @fv / POWER(1 + @rate, @nper))
and I passed this values to It SET @pv = -(52843.00 * (1 + 0.00631333 * 1) * (1 – POWER(1 + 0.00631333, -240.5689440)) / 0.00631333 + 0 / POWER(1 + 0.00631333, 240.5689440))
and it resulted to -6569663.24 while on excel I got -6569663.04