Apache OpenOffice (AOO) Bugzilla – Issue 27002
Precision problem in the financial function xirr
Last modified: 2013-08-07 15:15:02 UTC
The precision of the internal return rate calculated by the function xtri is insufficient (in fact, i use the french translated function tri.paiements). Precision problem in the financial function xtri Example, enter the following cash-flow/date couples : -100 1/1/04 10 1/1/05 10 1/1/06 110 1/1/07 The xtri function on these cashes should have returned 0.1. It returns 0.099. I guess that it is caused by an inproper test of the end of the iteration loop. Best, JJ
Hi, I'm sorry but I could not find this function. Please attach a document showing your problem. Thanks. Frank
Hi Jean-Jacques, this is in the basics of the statistical functions and therefore a double to Issue 18704. Eike has set the needhelp keyword for this Issue and appreciates any help you can give. Thanks. Frank *** This issue has been marked as a duplicate of 18704 ***
Ooopps, wrong handling. Reopened Frank
Hi Eike, I think this one is for you. I've set the blocks value. Frank
Adding needhelp keyword for time reasons.
It turned out that the difference observed results from the fact that calculation is based on a 365 days per year basis, ignoring leap years. This is identical to what the main competitor does and documents, and the AddIn functions try to mimic it as close as possible. @Uwe: Please add a sentence about the 365 days per year calculation to the XIRR function's documentation. The same holds true for the XNPV function, being the reverse operation of XIRR. Eike
Reassigning, forgot to click the radio button.. Uwe, please see the previous comment.
The difference between 365 and 365.25 days in the XIRR calculation can be worked around (multiply the result by 365/365.25) IF you know about the difference to begin with. Agreed that this should be documented.
Will add a sentence about the 365 days per year calculation to the XIRR function's documentation. The same holds true for the XNPV function, being the reverse operation of XIRR.
help for XIRR and XNPV edited
.
UFI: QA, pls verify in CWS helpcontentbeta and close
kla: verified in cws helpcontentbeta
kla: ok in master m64 ->closed