calculate_payout_period
Calculate the months needed to recover an initial investment by determining when cumulative cash flow becomes non-negative, based on a series of monthly cash flows.
Instructions
Calculate payout period -- months to recover initial investment.
Payout is the first month where cumulative cash flow >= 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 |