Skip to content
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

IRR/XIRR functions? #1176

Open
xkcd386at opened this issue Aug 24, 2024 · 2 comments
Open

IRR/XIRR functions? #1176

xkcd386at opened this issue Aug 24, 2024 · 2 comments

Comments

@xkcd386at
Copy link

xkcd386at commented Aug 24, 2024

Describe the problem to be solved

I just discovered grist, and it looks absolutely amazing -- kudos to all of you for such a fantastic tool.

While trying to find use cases for it in my personal life, one gap I found was the lack of IRR/XIRR (internal rate of return) functions. Not sure if this would be something that is easy or hard or even possible, but thought I'd mention it.

Thanks again for a very nice and easy to use product.

Describe the solution you would like

The IRR and XIRR functions in XLS or LibreOffice take a column of numbers (at least one positive and one negative, the others can be whichever) and an equal sized column of dates, and computes a "rate of return". I apologise I'm not that familiar with the exact formula used behind the scenes of these functions.

Edited to add: LibreOffice (and Excel I assume) have a lot more financial functions. IRR/XIRR happen to be the only ones I care about, but there may be others that are important in general.

@dsagal
Copy link
Member

dsagal commented Aug 24, 2024

I'd say this relates to #35 (Support data science libraries). If that were available, numpy contains the irr function, and there are other libraries that may offer more, e.g. pyxirr.

@xkcd386at
Copy link
Author

thanks, though these functions are more properly "financial" functions -- but maybe that's just semantics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants