You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@akayvanfar, out of curiosity, do you really have a cashflow that depends on the hour of the flow? I was thinking of replacing Time in favor of a Date.
Answering your question, in my branch of Finance you indeed get a IRR of -107% with the default guess. When you add a guess of -80.0 you end up with the expected result.
I've made a gem called XIRR that was based on finance that runs xirr calculations in two different methods. But it accepts only dates, so the result I get there is a bit different from yours:
Thanks for the response. Weird that it is so dependent on the guess. Is there reason for that?
Using 'Date' would be fine by me. I only used 'Time' since it is what the Transaction object took. Thanks you for pointing out 'XIRR' . Our data scientist, @vnavkal , will be happy to hear that.
So the gem appears to incorrectly calculate IRR (using
xirr
) for highly negative returns. For example, using this set of cashflows / transactions2014-04-15 00:00:00 -0700 : -10000.0
2014-04-16 00:00:00 -0700 : -10000.0
2014-05-16 14:59:00 -0700 : 305.6
2014-06-15 23:59:59 -0700 : 9800.07
2014-06-15 23:59:59 -0700 : 5052.645
the gem gave an IRR of -107% while other tools gave an IRR of -80%. Can you guys look into this please?
Thank you.
AK
The text was updated successfully, but these errors were encountered: