calculate_payout_period
Calculate the number of months required to recover initial investment from monthly cash flows, determining when cumulative cash flow becomes non-negative.
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 |