Forecast project duration (Monte Carlo)
forecast_durationRun Monte Carlo simulations on three-point task estimates to forecast total project duration with P50/P80/P90/P95 confidence levels and target completion probability.
Instructions
Run a Monte Carlo simulation over a list of tasks, each with an optimistic / most-likely / pessimistic duration, to produce a probabilistic forecast of the TOTAL project duration. Returns P50/P80/P90/P95, mean, standard deviation, and a distribution shape. Optionally give a target to get the probability of finishing within it. Use this instead of guessing a single deadline: it turns three-point estimates into calibrated confidence levels. Tasks are summed (run in series).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | PRNG seed. Fixed by default so results are reproducible; change it to explore alternate random streams. | |
| unit | No | Unit label for the estimates, used only for display (e.g. days, hours, weeks). | days |
| tasks | Yes | The tasks whose durations are summed into a project total. | |
| target | No | Optional target duration (same unit as the estimates). Returns the probability of finishing within it. | |
| iterations | No | Number of Monte Carlo iterations (100..200000). | |
| distribution | No | Probability distribution for the estimate. 'pert' (beta-PERT) is the project-management default. | pert |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | ||
| min | Yes | ||
| mean | Yes | ||
| seed | Yes | ||
| unit | Yes | Unit of the forecast values (e.g. days, EUR). | |
| stdDev | Yes | ||
| target | No | ||
| histogram | Yes | ||
| iterations | Yes | ||
| percentiles | Yes | Map of percentile label (e.g. '80') to value. | |
| distribution | Yes | ||
| probabilityWithinTarget | No | Probability (0..1) of finishing within `target`. |