From Dev.to
Your real investment return: writing XIRR from scratch in Python
Brokerage apps show a return number, but if you've been adding money at random times, a simple "gain divided by deposits" figure is misleading. The right tool is the money-weighted return, the same th...
