Calculate IRR for uneven contributions and withdrawals at irregular intervals.
Positive amounts are money received; negative amounts are additional investments or payments.
Model and assumptions. Finds a rate at which the discounted cash flows sum to zero. The irregular version discounts each flow by its entered elapsed years. Mixed-sign flows can have multiple roots or no root; an unavailable or ambiguous result is reported explicitly, and reinvestment is not guaranteed.OpenStax: internal rate of return