Cycle Time, Cumulative Flow and Monte Carlo Forecasts
Operator: Abdulla Al Fahad. How tools are built and checked
Asking a team how long a task takes gets an estimate; looking at how long its recent tasks actually took gets a distribution. A cycle-time scatterplot with percentile lines turns that distribution into a promise the team can make: 85% of our items finish within so many days.
The page needs only dates. Each item has a row, and each stage it passes through has a date column, such as Created, Started and Done. From those it draws cycle time, throughput, the age of unfinished work and a cumulative flow diagram, and it forecasts delivery by resampling your own throughput history.
It reads an export; it does not connect to a tracker.
Key features
- Cycle-time scatterplot with 50th, 70th, 85th and 95th percentile lines, by nearest rank
- Throughput per day, week or fortnight as a run chart and as a histogram of how often each count occurred
- Work-item age for unfinished items, by current stage, against the finished items' percentiles
- Cumulative flow diagram over up to eight stages, with average WIP, throughput and the cycle time Little's Law implies
- Monte Carlo forecasts, run in a background worker with a seed: when N items will be done, and how many items will be done by a date
- A finished-between window and a type filter, so a quarter or one kind of work can be analysed alone
- Counting rules for the first and last day and for weekdays only, with CSV and XLSX downloads
Which dates the page needs, how a day is counted and how forecasts are drawn
Each row is one work item with an ID and, optionally, a type. The stage columns are dates in workflow order. Cycle time runs from the date in the stage you mark as the start to the date in the done stage; an item with a start but no done date is in progress, and an item with neither is ignored. Items that are done before they started are left out and listed.
Jira's CSV export has Created and Resolved dates, and dates for statuses in between need a report or an app that adds them as columns. Azure DevOps work items have Created Date, Activated Date, Resolved Date and Closed Date fields. Linear exports typically carry Created, Started and Completed. A simple sheet with a start and a done column works too, using two stages.
Dates may be ISO (2026-03-02, with or without a time), day-first or month-first with slashes (the order is guessed from the values), or Jira's 02/Mar/26 10:15 AM. Times of day are dropped, so a day is a calendar date. A date after the as-of date counts as not yet happened, which lets you rewind the analysis to an earlier day. By default the first and last day both count, so an item started and finished on one day took 1 day; turn that off for finish minus start, or count weekdays only.
How it works
Percentiles are read by nearest rank: the 85th percentile is the smallest cycle time that at least 85% of items did not exceed, so it is always a time that was actually observed.
Throughput is the number of items finished in each period, with empty periods between the first and the as-of date counted as zero. Weeks start on Monday.
The cumulative flow diagram counts, for each day, the items whose date in each stage is on or before it, and plots the stages as stacked bands. An item that skips a stage is counted as reaching it on the day it reached the next stage you listed, and an earlier stage is never dated after a later one, so the lines cannot cross.
Little's Law says average cycle time equals average WIP divided by average throughput. The page computes average WIP as the number of items between the start and done stages on each day, divided by the length of the window, and shows the cycle time that gives.
A forecast draws one throughput value at random, with replacement, from the history for each future period. For when-will-it-be-done it keeps adding periods until N items are finished and records how many periods that took; for how-many-by-a-date it adds up the draws for the periods before the date. Repeating this thousands of times gives the percentiles.
Common use cases
- In the simulated export, asking when 25 more items will be done gives 5 weeks at 50% and 6 weeks at 85%; quoting both makes the conversation about risk rather than about one date.
- A Scrum Master sees three items older than the 85th percentile of finished work and raises them at the next stand-up.
- A product owner splits the simulated export at 8 April with the Finished from and to boxes: the 85th percentile is 9 days over the 81 items finished before that date and 16 days over the 56 finished from then on, so the slowdown is visible before anyone argues about averages.
How to use this tool
- Drop the export or paste it, or load the simulated issues, and check the ID, type and stage date columns.
- Set which stage starts the clock and which means done, and choose the counting rules.
- Read the percentile figures and the scatterplot, then the throughput and age charts.
- Look at the cumulative flow diagram for widening bands.
- Choose a forecast question, set the items or a target date, and run it.
Example
A simulated 140-issue export: columns Issue key, Type, Created, In Progress and Done, cycle time from In Progress to Done, counting the first and last day
Issue key,Summary,Type,Created,In Progress,Done
PRJ-101,Issue 1,Bug,2026-05-07,2026-05-07,2026-05-08
PRJ-102,Issue 2,Story,2026-05-21,2026-05-28,2026-06-03
PRJ-103,Issue 3,Bug,2026-03-08,2026-03-08,2026-03-11
... 137 more rowsFlow metrics as of 2026-06-10
137 finished items, 3 in progress
Cycle time percentiles: 50% 6 days, 70% 8, 85% 11, 95% 17
Throughput over 23 weeks: 1 to 11 items a week, 5.96 on average
Average WIP 5.53, throughput 0.87 per day, Little's Law cycle time 6.3 days against a mean of 7.1
Forecast, 10,000 trials, seed 2026: 25 items finish in 5 weeks at 50% and 70% confidence, 6 weeks at 85%, 7 at 95%; in the next 8 weeks 39 or more items finish with 85% confidenceTips for best results
- Pick the start stage where the team starts working, not where the ticket was created. Queue time before work starts belongs in a lead-time view, which you get by choosing the first stage as the start.
- Use at least 6 to 8 periods of history for a forecast, and exclude periods that were not typical, such as an all-hands week, with the Finished from and to dates.
- Compare the median with the mean on the scatterplot: a mean well above the median means a long tail of slow items.
- Run the forecast on weeks for work measured in weeks; daily samples include many zeros and make the spread look wider.
Common pitfalls
A forecast assumes the future looks like the history sampled. A change of team size, a new product area or a release freeze breaks that assumption.
Items finished are counted whatever their size. If most items are small and a few are huge, the forecast of item counts is about items, not effort.
Items still open are not in the cycle-time percentiles, which understates cycle time while many items are old. The age chart is how they appear.
Re-opened or cancelled items that have a done date count as finished unless you filter them out first.
Little's Law holds for long periods with stable WIP; over a short window it can differ from the mean cycle time, as the example's 6.3 against 7.1 days shows.
Common errors and how to fix them
- The start stage must come before the done stage, in the order of the stage columns.
- Reorder the stage columns so they run from earliest to latest, or change which stage starts the clock.
- Dates must be written yyyy-mm-dd, for example 2026-03-02.
- The finished-from, finished-to and as-of boxes take ISO dates only, even though the data columns accept more formats.
- At least 3 periods of throughput history are needed to forecast.
- Widen the window, choose a shorter period such as days, or wait for more finished work.
- Finishing 10,000,000 items at this throughput takes about 10,000 periods per trial; with 100,000 trials that is more than this page simulates.
- A forecast may make at most 400 million random draws (trials times periods). Lower the trials, forecast fewer items, or pick an earlier target date.
- Every period in the history has zero completions, so nothing can be forecast.
- No item in the chosen window is done. Check the done stage column and the finished-between dates.
Best practices
- Use the same start and done definitions for every report, and write them next to the chart.
- Quote percentiles with the date range and the counting rule, such as 85% within 11 days, first and last day counted.
- Re-run the forecast every week with the updated history, and keep the seed in the note.
- Look at the age chart before every planning meeting, since it shows the risks that percentiles of finished work cannot.
Reading a cumulative flow diagram
Each coloured band is a stage, and its vertical thickness on a date is the number of items sitting in it. The top edge is the total that has arrived, and the bottom band is the finished items. If the bands stay roughly parallel, arrivals, work and completions are in balance.
Items that skip a stage are counted as passing through it on the day they reached the next one, so a band stays at zero thickness rather than going negative when work jumps from Created straight to Done. A band that gets thicker over weeks is a queue forming, usually before a bottleneck. A flat bottom edge means nothing is finishing, even if the top is climbing. The horizontal distance across a band at a given height is roughly how long an item spent in that stage.
Percentiles beside averages
In the simulated export the mean cycle time is 7.1 days, the median 6, the 85th percentile 11 and the 95th 17. A promise based on the mean would be missed by about one item in three (34% of finished items took longer than the mean), because the distribution has a long right tail.
That is why the page reports percentile lines and not just an average: the 85th percentile is a date you can commit to and be right 85 times in 100, if the future resembles the sample.
Frequently asked questions
Does it work without status-history columns?
Yes. Two stage columns are enough: one for the start date and one for the done date. A cumulative flow diagram with only two stages shows arrivals against completions.
Why a percentile and not an average?
Cycle times are skewed, with a few slow items, so the average promises less than it seems to. The 85th percentile is an observed time that 85% of items met.
What is the as-of date?
The date the age and forecast calculations count from. Left blank it is the latest date anywhere in the data, so the results do not change with today's date. Set to an earlier date, it rewinds the analysis: dates after it are treated as not yet happened, so the percentiles, throughput and forecast use only what was known then, which is how to test a forecast against what really happened.
Can I forecast per item type?
Pick a type under Only this type. Cycle time, throughput and the forecast then use that type's items alone.
How many trials should I use?
10,000 is enough for stable percentiles. With the same seed the same inputs always return the same forecast.