Skip to content

Wait Time — what a location waits for, and why it matters

Where you see it: the IO tab of a series (the Wait Time card and the amber WT pill on every lane of the network graph), the MEIO results grid, and the wait_time column of the MEIO results table. It is shown in days on screen and stored in weeks.

What it is, in one paragraph

A location is replenished by another location (a store by a country warehouse, a country warehouse by a central warehouse) or built from components. Most of the time the supplier has stock and the replenishment takes just the lead time of the route. Sometimes the supplier is out of stock, and then the location has to wait for it to be replenished first. The wait time is the expected extra delay, on top of the lead time, that a location suffers because the location it depends on is not always in stock. The better stocked the supplier, the shorter the wait — and a little stock removes most of it.

That one idea is the whole point of multi-echelon optimisation: stock held upstream is not only there for the upstream location's own demand, it also shortens the wait of everything below it, which lets those locations hold less stock for the same service level. A warehouse with no demand of its own still earns its stock this way.

Lead time, wait time, effective lead time

Term Meaning Who sets it
Lead time (leg) The physical time of the replenishment route: transit plus pick/pack The route master data (or the lead-time statistics)
Wait time The expected extra delay because the supplier may be out of stock Computed by the optimizer; changes as stock is bought upstream
Effective lead time Lead time + wait time — the period a location has to cover with its own stock Lead time plus wait
reorder point  =  demand rate × (lead time + wait time)  +  safety stock

Wait time is not lead-time variability. Variability is how much the lead time itself fluctuates; the wait is a systematic extra delay that exists because the supplier is sometimes empty.

Across levels: the wait comes from the supplier

Locations replenished from another location (stores, warehouses):

wait of a location  =  how long its supplier keeps its customers waiting
                    =  expected backorders of the supplier  ÷  its demand rate

A supplier that is out of stock cannot ship until it is resupplied. That takes the supplier's own lead time plus the wait the supplier itself suffers on its own supplier — the waits add up the chain. How often the supplier is out of stock, and for how long, depends on the stock it holds:

  • A supplier that holds no stock makes its customers wait its whole resupply time: its lead time plus its own wait.
  • A supplier that holds more than the demand over its resupply time is almost never empty: its customers wait next to nothing.
  • In between the wait falls steeply with the first units: a supplier that is 76 % in stock is nearly always able to ship, and refills within days when it is not. The wait is therefore far below lead time × (1 − fill rate).
  • A location fed by several suppliers waits the average of their waits.

A line chart of the wait of a regional location against the stock its top location holds. With no stock the regional waits 20 days; with 62 units the model and the physical simulation give about a third of a day where the earlier rule gave 4.7 days

One top location (lead time 20 days) supplying five regionals. The model (green) and an event simulation of the physical system (circles) agree to the second decimal; the earlier rule (dashed) stayed high until the top was almost fully stocked.

One example in three conditions

A top location with a 20-day lead time supplies five regional locations over 5-day routes; each regional sells 4 units a week. The same example, with more and more stock at the top:

The top holds Fill rate of the top Wait of a regional Days a regional must cover Stock of the five regionals
nothing 0 % 19.7 days 24.7 101 units
62 units 76 % 0.34 days 5.3 29 units
71 units 97 % 0.03 days 5.0 28 units

Three optimizer runs side by side: with the top empty a regional covers 24.7 days and the five regionals hold 101 units; with 62 units at the top they cover 5.3 days and hold 29; with 71 units they cover 5.0 days and hold 28

Each day of wait removed is a day of demand the five regionals no longer cover themselves. The first 62 units at the top remove 19 days of wait: the stock moves upstream.

Where these numbers come from

They are optimizer runs on this small example network. In the last two rows the stock at the top was forced. Left alone, the optimizer reaches the 95 % target with the top empty, because one more unit in a regional raises the fill rate more per unit of money than the top's first step. An empty top waits 19.7 days rather than 20: the model counts a stock of one unit of demand even at a buffer of zero.

How the optimizer uses it

flowchart LR
    A["INPUT — stock at the supplier<br/>(its committed buffer)"]
    B["PROCESS — the supplier's fill rate<br/>(how often it has stock)"]
    C["PROCESS — wait of the location below<br/>= the supplier's expected delay<br/>(backorders ÷ demand rate)"]
    D["PROCESS — the location's fill rate<br/>over lead time + wait"]
    E["OUTPUT — stock the location needs<br/>for the group's fill-rate target"]
    A --> B --> C --> D --> E
    classDef io fill:#e7f6f0,stroke:#10b981,color:#1b4332;
    classDef proc fill:#eef2ff,stroke:#6366f1,color:#312e81;
    class A,E io;
    class B,C,D proc;
  1. The optimizer buys stock one step at a time wherever one more unit raises the fill rate of a group the most per unit of money.
  2. One more unit at a supplier is worth its own gain plus the gain of every location below it: their wait gets shorter, so their fill rate rises although their own stock does not change.
  3. Those gains are compared with buying at the locations below directly; the unit with the best value is bought first.
  4. After every purchase the value of the purchased location, of the locations below it and of every location above it is computed again, because the value of a location is the sum of what happens below it.

The chain of effects: one more unit of buffer at the top raises its fill rate, which lowers the wait and raises the fill rate of the regional location below

The chain the optimizer evaluates for every unit it considers at the top.

Why does my warehouse have no buffer although it serves many stores?

A warehouse is bought only when stock there is the cheapest way to reach the target. A warehouse one day upstream of its country warehouses removes at most one day of wait — a few units of demand — so it may stay at zero, while a warehouse that serves several busy stores is bought first. If a node must hold stock for business reasons, give it its own target (segment) or a minimum fill rate.

Starting waits

Every location starts the optimisation with the wait it really has: a supplier that holds no stock yet makes its customers wait its whole resupply time — its lead time plus its own wait, so up an empty chain the waits add up. Starting from zero would make a supplier's first purchase look harmful (its customers' wait would appear to rise from nothing). Floors — a minimum fill rate, a minimum quantity, existing stock — are sized against that real wait, and are refreshed once suppliers have received theirs. Along a replenishment chain a wait can only go down from there, so a floor is never undercut.

Locations sized on observed demand

A location sized on observed demand (the default, Use empirical distributions) has a demand-over-lead-time distribution built from its own history. That history describes the location's own leg; it does not contain the extra delay the optimizer is now modelling upstream. The optimizer therefore adds the demand that accrues while the location waits — demand rate × wait — to the horizon the distribution is evaluated at. This is the empirical wait shift (scenario setting empirical_wait_shift, on by default; see MEIO parameters). Without it, such a location could never see the stock above it, and no warehouse without direct demand would ever be bought.

Switch the shift off for a scenario only when the observed windows already include the upstream wait (for example windows built from supplier receipts that embed warehouse stock-outs); counting it twice over-sizes the locations.

Three and more levels

Three levels: a central warehouse with a 20-day lead time, a country warehouse with a 5-day route and a store with a 2-day route; four stock situations with the wait of the country and of the store as bars, and the physical chain as a check

Each level adds the wait of the level above it — not its full lead time. With nothing held above the store the waits add up: the country waits the central's 20 days, the store waits the country's 5 days plus the 20 the country itself waits — 24.1 days in the model, 25.0 in the simulated chain. Stock removes the sum from the top down: with the central 95 % in stock the store waits 4.5 days (the country's 5-day lane and almost no wait above it), with the country 80 % in stock only 0.3 days.

The store therefore has to cover its own 2-day route plus the wait: 2 + 25 = 27 days in the empty chain, which is 22 units at 4 a week for a 95 % service level; with the country stocked it holds 3.

The store's wait against the stock held at its country warehouse on a logarithmic axis: the model follows the physical simulation from 25 days with an empty country down to 0.03 days with 55 units; the earlier one-hop rule starts at 5 days and the rule lead time times one minus fill rate stays far above the simulation once the country holds stock

The store's wait as its country warehouse holds more stock, the central staying empty. The model follows the simulated chain at both ends and between them. The one-hop rule used until 4 Dec 2026 showed 5 days for the empty chain where the chain takes 25; charging every stock-out the whole resupply time (orange) overshoots the other way once the country holds stock.

How accurate is it?

Against an event simulation of the same chain (Poisson demand, one-for-one replenishment) the modelled waits are always a little short: 24.1 / 4.5 / 0.3 days against 25.0 / 5.0 / 0.4 — 4 to 24 % below, never more than 0.9 days in absolute terms (the relative gap is larger on very small waits: 0.03 against 0.05 days). On a one-level chain the two agree to the second decimal. Stores sized on the model reach 88–97 % service in the simulation against the 95 % target, so a partly stocked multi-level chain can end slightly under target.

Inside a bill of material: the kit waits for its slowest missing part

An assembly cannot start until every part it needs is on hand. The parts are resupplied in parallel, each on its own lead time. If several parts are missing, the assembly waits for the last one to arrive — the slowest of the missing parts — never the sum of their lead times.

A kit with three parts of 5, 10 and 15 days. If all three are missing on day 0 they arrive on days 5, 10 and 15 and the kit can start on day 15

All three parts missing: each is resupplied on its own, and the kit waits 15 days — not 5 + 10 + 15 = 30.

Whether a part is missing is a matter of chance, so the kit's wait is an expected value:

kit wait  =  Σ over the parts of   P(this part is the slowest one missing)  ×  T(part)

T(part) is how long the part takes to arrive when it is missing:

  • a part that holds no stock takes its whole resupply time — its lead time, plus its own wait when it is itself an assembly (a sub-assembly is waiting for its own parts);
  • a part that holds stock refills within days: T is its expected delay (expected backorders ÷ demand rate) divided by the probability that it is out of stock — the same delay a stocked supplier imposes on a location (above).

The parts are taken from the fastest to the slowest T, and a part counts only when it is missing and every slower part is in stock. That way each combination of missing parts is counted once, under its slowest missing part. A kit with one part waits exactly that part's delay.

One example: three parts

The hand-written example takes T equal to the lead time, which is right for a part that holds nothing. A kit with three parts: C1 (5-day lead time, 70 % fill rate), C2 (10 days, 60 %), C3 (15 days, 80 %).

Missing parts Probability Wait of the kit
none 0.7 × 0.6 × 0.8 = 33.6 % 0
C1 only 0.3 × 0.6 × 0.8 = 14.4 % 5 days
C2 (C3 in stock) 0.4 × 0.8 = 32 % 10 days
C3 0.2 = 20 % 15 days
kit wait  =  0.144 × 5  +  0.320 × 10  +  0.200 × 15  =  0.72 + 3.20 + 3.00  =  6.92 days

Stacked bar of the four outcomes: 33.6 % of the cases no wait, 14.4 % wait 5 days, 32 % wait 10 days, 20 % wait 15 days

The four outcomes as shares of all stock-out situations. The 15-day part is missing in 20 % of cases and alone accounts for 3.0 of the 6.92 days.

With real stock the wait is much shorter than 6.92 days

A part with a 70 % fill rate does not take its whole 5 days to come back when it is missing: it is being refilled all the time. The optimizer therefore uses the delay of a stocked part, not its lead time. The same kit with its three parts held at roughly these fill rates (82.7 / 67.9 / 85.8 % after rounding to whole units) waits 1.39 days in the model, 1.10 days in a simulation of the physical kit, and 5.39 days under the rule used until 4 Dec 2026, which charged the whole lead time to every stock-out. With all three parts empty the model gives 11.55 days against 11.56 simulated (the old rule: 15.00).

The bottleneck moves down as the parts are stocked

Bar chart: the kit wait is 6.92 days; ten more points of fill rate on the 5-day part give 6.68 days, on the 10-day part 6.24 days, on the 15-day part 5.91 days

Ten more points of fill rate on one part at a time, in the arithmetic of the hand-written example. The slowest part gives the most: its share is not reduced by any other part. The faster parts give less, because their shares are multiplied by the fill rates of the parts above them.

While the slowest part is empty, the other parts do not count at all: their shares are multiplied by the fill rate of the slowest part, which is 0. Stocking the slowest part is therefore the first move, and the bottleneck moves down to the next part as its fill rate rises. In an optimizer run the value of one more unit was exactly 0 for the 5-day and the 10-day part and positive only for the 15-day part (0.0019).

When two parts have the same lead time

Two parts with the same lead time are missing together 10.3 % of the time (at 67.9 % fill rate each). Until 4 Dec 2026 the formula separated the parts by a strict longer than, so a tie left both parts without a slower one: each was treated as the slowest missing part and those cases were counted twice (6.42 days against 5.39 for the hand-written formula counted once). The parts are now put in a strict order, so every combination is counted once.

Kit wait for parts with the same lead time: two 10-day parts at 67.9 percent give 6.42 days with the earlier code, 5.39 for the hand-written formula counted once, 1.59 with the new rule and 0.95 in a simulation; three 20-day parts at 50 percent give 29.2 days with the earlier code, 4.0 with the new rule and 2.27 in a simulation

The same kit under four readings (logarithmic axis). Counting once and using the delay of a stocked part brings the model from 6.4 to 1.6 days against 0.95 simulated.

The model is still above the simulation here

The formula treats the stock-outs of the parts as independent. Parts used by the same kit are drawn on the same demand, so identical parts run out together: the chance that at least one is missing is closer to the chance that one is missing than to the product of independent chances. With three identical parts the model gives 4.0 days against 2.27 simulated.

What the kit itself holds

The kit's wait is used exactly like the wait of a replenished location: the kit's effective lead time is its own build time plus the kit wait, and the kit's buffer covers the demand over that whole period.

Left alone, the optimizer buys 5 units of the 15-day part: the kit waits 0.92 days, covers 3.9 days and holds 7 units; with the part forced to 93 % the kit waits 0.18 days, covers 3.2 days and holds 3. One part shared by 1, 3 and 10 kits: the kits hold 7, 21 and 70 units left alone and 3, 7 and 23 with the part stocked

The same kit of 2 units a week with a 3-day build time. Left: what the kit must cover. Right: when one long-lead part is shared by several kits, stocking the part once lowers the stock of every kit — and the optimizer now buys that part itself, because the kit wait it removes is worth more than the part costs.

Nested bills of material

A sub-assembly is both an assembly (it has parts) and a part (a bigger assembly uses it). The assembly above it waits for the sub-assembly the way a location waits for its supplier: the sub-assembly's delay over its own resupply horizon — its build time plus its own wait for its parts. An empty sub-assembly waiting 40 days for a part makes the assembly above it wait about 34 days, not just the sub-assembly's 1-day build time.

A nested bill of material in five stock situations: the wait of the top assembly under the earlier rule, under the new rule and in a simulation of the physical system, on a logarithmic axis. With everything empty the earlier rule gave 1.0 day, the new rule 34.0 and the simulation 34.0 days

Ca is made of K2, which is made of Ka (40 days) and Kb (2 days). The stock of every part is fixed, so the three bars describe the same situation. With everything empty the earlier rule saw only K2's 1-day build time; the new rule adds the 33 days K2 itself waits and matches the simulation. With stock the two rules are about equally far from the simulation (0.24 against 0.29 days on average) — the model tends to be below it, because the resupply lag of a stocked sub-assembly is irregular and the model uses its average.

Across 20 random nested bills of material the average gap between the model and the simulation fell from 2.3 days to 0.12 days (worst case 16.5 days to 0.4).

When a sub-assembly appears above another assembly in the data, the optimizer sets the waits from the bottom up, whatever the item numbers, so every assembly sees the final wait of the sub-assembly below it.

A real example (theBicycle, item 22 "Brake Service Kit")

The central warehouse sits one day (0.143 week) above five country warehouses, each of which supplies five stores and has a 5-day (0.714 week) lead time. The optimizer's result before the 4 Dec 2026 change, which counted only the supplier's own lane time:

Location Stock bought (ROP) Fill rate Wait time How the wait came about (old rule)
Central warehouse 0 0 % 1.905 weeks It waits on component 5 (the pads) at the same site — the kit wait
Country warehouse 6 81.9 % 0.143 week (1.0 day) The central holds nothing: its lane time 0.143 × (1 − 0)
Store 10 100 % 0.129 week (0.9 day) The country warehouse is 81.9 % filled: 0.714 × (1 − 0.819)

What changes (expected, not measured)

The central holds nothing and waits 1.905 weeks for its pads, so it is resupplied after its own 0.143 week plus those 1.905 weeks — about two weeks. Under the current rule the country warehouses should therefore wait about that long, not 1 day, and the stores below them are expected to be sized larger. Neither effect has been measured: MEIO has not been re-run on this tenant, so the table is the old run, shown for its structure only.

Reading the number

You see It usually means
Wait 0 or — The supplier is always in stock (or has a fill rate of 100 %), or the location has no upstream in the model
A short wait on a store Its warehouse is well stocked: the stock above is doing its job
A wait equal to the supplier's resupply time The supplier holds no stock at all: the location has to cover the supplier's lead time and its own wait itself
A long wait on an assembly A component of the kit is scarce: look for the part with the longest lead time and the lowest fill rate
A node with a low fill rate and a wait on it It is waiting on something itself — look at what it is replenished from

Limits

  • The wait is the expected delay of a supplier modelled as a one-for-one base-stock location. It does not model queues of backorders beyond that, nor partial deliveries. On a chain of locations it matches an event simulation to the second decimal when the simulated chain uses the model's own convention (a buffer of R units is a base stock of R + 1 at every level: 24 random chains, at most 0.02 days apart); a chain that holds literally nothing at an empty level waits up to 4 % longer than the model says.
  • The service level of a location behind a partly stocked supplier can end below target. The model uses the average delay; when the supplier runs out, all its customers wait together. In 3 of 24 random chains the simulated fill rate of the stores was 2–3 points under the model's (at most 3.4), all with an empty central above a country warehouse holding moderate stock.
  • The kit formula treats the stock-outs of the parts as independent. Parts consumed by the same kit run out together, so for similar parts the model is above the simulation (4.0 against 2.27 days for three identical parts).
  • The delay of a stocked sub-assembly is computed on its average resupply lag. Its real lag is irregular, so the model is usually below the simulation there (0.09 against 0.44 days in the worst of five tested cases).
  • A location has one wait: an assembly that is also replenished from another location keeps the wait of its parts and does not add the wait of that location.
  • Stock upstream or in a bottleneck part is bought only when it is the cheapest way to reach the group's target; a location that can reach the target with its own stock alone receives no stock above it.
  • A fitted parametric distribution (Gamma, LogNormal, Weibull, negative binomial) is fixed-parameter: its delay is computed exactly (checked against an independent integral for each family), but its fill rate is not shifted by the wait; only the empirical families and the Poisson / Normal formulas react to it.
  • With lateral rescue (V4 network mode) the horizon is blended with the rescue lane's time and the wait can be negative (the rescue beats the leg); the delay is evaluated on that blended horizon, which stays positive; see MEIO theory.
  • The wait shown for a location is the final one of the run, after the last purchase.

For developers

Item Where
Delay a supplier imposes supplier_delay_weeks (marginal.rs) = expected_backorders (distributions.rs, per distribution family) ÷ demand rate, on the same horizon_state as the supplier's fill rate
Initial waits of a replenishment hierarchy propagate_hierarchy_wait_times (Phase 0c before the floors, Phase 1c after them)
Kit waits propagate_kit_wait_times (Phase 1b; assemblies bottom-up through kit_order), kit_probabilistic_wait_time (each part enters with T = its delay ÷ its stock-out probability)
Valuation of one unit (own gain + gain of the locations below) compute_mv_recursive in marginal.rs; ancestor refresh after each purchase round in optimizer.rs (greedy_loop)
Empirical wait shift wait_shift_units, FillRateParams.wait_extra; config flag MeioConfig.empirical_wait_shift (default true, scenario key param_overrides.empirical_wait_shift)
Stored value PIPE_meio_results.wait_time (weeks)
Stale-extension guard echelon_wait_supported and backorder_delay_supported markers, checked by meio_runner._require_echelon_wait_extension
Tests marginal.rs::echelon_tests and distributions.rs expected_backorders_* (Rust, each checked against an independent calculation), files/tests/test_meio_echelon_wait.py
Figures of this page docs/assets/figures/wait-time/ — copied from the full explanation with every condition and probe (docs/reports/meio_wait_time_explained_2026-12-04.html, repository only)

See also: MEIO theory (the greedy loop and the multi-echelon wait channel), Safety stock fundamentals, MEIO parameters.