Bhanu17Sharma02 commented on pull request #256:
URL: https://github.com/apache/poi/pull/256#issuecomment-931225414


   Thanks for sharing a Microsoft reference, I went through it, 
   According to the doc shared by you, the initial investment is not supposed 
to be provided as an input to the npv function, but is supposed to be added to 
the final output of the npv function to get the final outcome.
   We executed the same function  with the data that you provided and my own 
dataset, in both the cases the output of your npv function did not match with 
the output from the excel npv function.Attaching the screenshots and the excel 
files for both the cases.
   
   [Correct NPV 
Calculation.xlsx](https://github.com/apache/poi/files/7258927/Correct.NPV.Calculation.xlsx)
   
   ![NPV Excel 
](https://user-images.githubusercontent.com/24208396/135444020-0a107be2-7e04-4e6c-9738-781e41ab7c1a.png)
   ![NPV with inbuilt 
function](https://user-images.githubusercontent.com/24208396/135444940-b6dfffb6-c830-45f3-a933-a55ac5a21bc0.jpeg)
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to