Bug 146599 - XIRR produces incorrect value
Summary: XIRR produces incorrect value
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.1.8.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Function
  Show dependency treegraph
 
Reported: 2022-01-05 23:10 UTC by David Ezzio
Modified: 2022-02-08 16:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Snapshot of an open Calc SS with two formulas revealed (63.24 KB, application/pdf)
2022-01-05 23:12 UTC, David Ezzio
Details
The ODS file corresponding to the pdf file showing the problem (13.64 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-02-06 15:53 UTC, David Ezzio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Ezzio 2022-01-05 23:10:21 UTC
Description:
Comparing XIRR and RATE for the same two cash flows, XIRR produces 38% while an equivalent (IMO) RATE calculation produces 32%.  In addition, the HP 10bII calculator agrees with the RATE calculation.   

Steps to Reproduce:
1.Please see attached PDF, containing a snapshot of an open Calc SS with the two formulas revealed.
2.
3.

Actual Results:
38%

Expected Results:
32%


Reproducible: Always


User Profile Reset: No



Additional Info:
The XIIR calculation for a starting negative cash flow and an ending positive cash flow should produce the same compounding interest rate as the RATE function with zero additional payments over the same period.  In fact, to get close to 38% produced by the XIRR function by using the RATE function would require the use of 54 days rather than the actual 64 days in the period.
Comment 1 David Ezzio 2022-01-05 23:12:40 UTC
Created attachment 177339 [details]
Snapshot of an open Calc SS with two formulas revealed
Comment 2 eisa01 2022-02-06 15:36:51 UTC
Can you upload the test document?

Setting this as OS all, as I doubt it's limited to macOS
Comment 3 David Ezzio 2022-02-06 15:53:55 UTC
Created attachment 178100 [details]
The ODS file corresponding to the pdf file showing the problem

Happy to supply the example ODS file.
Comment 4 eisa01 2022-02-08 16:53:11 UTC
Thanks!

I opened your document in Excel, saved as xlsx, and recalculated:
The output is identical as LO

So without going into the calculation logic behind it, it seems like spreadsheet software do see this as two different cashflows on the backend

Resolving as not a bug