Skip to content

Doesn't give proper IRR for very negative returns #33

@akayvanfar

Description

@akayvanfar

So the gem appears to incorrectly calculate IRR (using xirr) for highly negative returns. For example, using this set of cashflows / transactions

2014-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions