Portfolio Longevity
portfolio-longevityHow many years a balance lasts while withdrawing from it: the balance grows each year, then the withdrawal (optionally stepping up) is taken. Returns the depletion year, or sustainable=true when it outlasts 200 years.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| balance | Yes | Starting balance. | |
| annualRatePct | Yes | Annual portfolio growth in percent. | |
| annualWithdrawal | Yes | Amount withdrawn in the first year. | |
| withdrawalGrowthPct | No | Optional. Yearly step-up of the withdrawal in percent (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | Depletion year (null if sustainable). | |
| sustainable | No | True if it outlasts 200 years. |