calculate_irr
Calculate the internal rate of return (IRR) from a series of monthly cash flows. Finds the discount rate that makes net present value zero.
Instructions
Calculate Internal Rate of Return via bisection.
IRR is the annual discount rate at which NPV = 0.
Args: cash_flows: Monthly cash flows ($). First element is typically negative (capex).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash_flows | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |