# Phlogiston/Forecasting Model

This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. |

Phlogiston makes two independent forecasts, one by **points,** using the Story Points field in Phabricator, and one by **count** of tasks. For all calculations, "now" or "today" is the most recent day in the data.

Velocity over a time period is the number of resolved tasks (or sum of points) at the end minus resolved tasks at the beginning. If negative, it is counted as zero in this model.

Backlog growth over a time period is the total number of tasks, open and resolved (or sum of points), at the end minus at the beginning. If negative, it is counted as zero in this model.

- Calculate velocity per category
- Calculate velocity for the week ending today

- Make three forecasts of future velocity
- Optimistic is the average velocity of the highest 3 weeks within the last
**3 months**, with a minimum of 2 - Nominal is the average velocity per week over the last
**3 weeks**, with a minimum of 1 - Pessimistic is the average velocity of the worst 3 weeks in last
**3 months**, with a minimum of zero.- Note: For teams that resolve tasks every 2 weeks, and thus have a bunch of 0 weeks, this will produce a falsely low forecast

- Count all negative weeks as zero before averaging or summing.

- Optimistic is the average velocity of the highest 3 weeks within the last
- Make three forecasts of backlog growth
- Optimistic is flat: 0 growth.
- Nominal is the average of the last three weeks.
- Pessimistic is the greater of
- the average backlog growth of the last three weeks
- the average weekly growth over the last three months.

- Count all negative weeks as zero before averaging or summing.

- Combine Velocity and backlog growth forecasts
- Optimistic is not changed
- Updated nominal velocity is nominal velocity - nominal backlog growth (not less than 0).
- Updated pessimistic velocity = pessimistic velocity - pessimistic backlog growth (not less than 0).

- Divide the total remaining backlog (per category) by each of the three velocities to determine # of weeks remaining.