-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XIRR incorrect values for very large datasets #48
Comments
I can confirm this issue. Sample code:
However, if you (somehow) correctly guess the initial guess close to the result, it will work.
@harzkr did you find a solution to your problem? |
Hi @jadfls Nice find on the guess value part that you mentioned, but yeah it does pose the difficulty of correctly assuming an initial close value. I have kept the usage of this package limited to any fallback calls(if others fail), and have shifted my primary package to Since it is closely associated with the MS Office Excel etc., softwares, it correctly calculates values for 99.9% of the use cases, for others, there's usually a problem with improper set of transactions, else, I use fallback calls to this and other XIRR packages to get a value. But mostly those are very corner cases |
XIRR value is being calculated incorrectly for transactions of order 40k-50k, the incorrectness increases when the number of transactions increase say 80k-90k
This I had checked with other xirr packages which were returning the same value as well as Excel, which confirmed the calculations. The value calculated by this package was incorrect
The text was updated successfully, but these errors were encountered: