How we compute an ETA on the China–Europe rail corridor
A fifteen-day train does not need a promise, it needs a number that moves when the network moves. Here is the arithmetic behind ours, and the three things that break it.
Anna Zalewska
Head of Operations
Published: 8 October 2026
Updated: 12 November 2026
9 min read
Ask a planner what arrives on Tuesday and you will get one of two answers: the date printed on the booking, or a guess dressed as an estimate. Both are useless to a warehouse that has to staff a receiving shift. We decided early on that an ETA is not a promise about the future — it is a measurement of the present, extended forward. That sentence sounds like marketing. It is, in fact, the specification of the calculation.
The train is a sum of legs
Every scheduled product on our corridor is stored as an ordered list of terminals and a table of edges between them. An edge carries a distance in kilometres and a line time in hours, and two of them additionally carry a gauge exchange with a planned dwell. Nothing else. The whole transit time of Xi'an to Małaszewicze is the sum of those edges plus the dwell we plan at the intermediate terminals.
| Section | Distance | Line time | What is measured here |
|---|---|---|---|
| Xi'an — Alashankou | 3 250 km | 62 h | Pathing through the Urumqi group |
| Alashankou — Dostyk | 12 km | 10 h | Bogie exchange, 1435 → 1520 mm |
| Dostyk — Astana | 2 100 km | 74 h | Kazakhstan line haul |
| Astana — Moscow | 3 050 km | 96 h | Russian network, slot dependent |
| Moscow — Minsk | 840 km | 40 h | Border checks on arrival in Belarus |
| Minsk — Brest | 350 km | 20 h | Approach to the EU gateway |
| Brest — Małaszewicze | 8 km | 12 h | Bogie exchange 1520 → 1435 and customs |
| Małaszewicze — Warsaw | 190 km | 14 h | Polish network to the inland terminal |
Those numbers sum to 13.1 days for the running and dwell plan, and we publish the product as 12–14 days. The lower bound is the plan when the exchange terminals behave; the upper bound is what we have seen in a quarter where one of them did not.
What makes the number move
An ETA changes for exactly three reasons, and we refuse to change it for any other.
- 1A position report arrives that puts the consist behind where the plan said it would be at that moment. This is the common case and the least interesting: the ETA moves by the difference, and nothing else changes.
- 2An event arrives that consumes planned time — the train entered the exchange tracks at Dostyk and the dwell clock started. From that moment the ETA is no longer the plan plus a delay; it is the measured dwell so far plus the remaining plan. When the consist leaves the exchange tracks we write the actual dwell into the record, and the next ETA uses the measured figure rather than the planned one.
- 3An exception is registered: a customs inspection, a pathing queue, weather on a section. The exception carries its own expected duration, and the ETA moves by that amount with the reason attached.
Dwell is the variable, line haul is not
Over a full year of records the line sections are remarkably stable. A train covering the 3 050 km from Astana to Moscow does it within a band we can predict to single-digit hours. The variance lives almost entirely in the two gauge exchanges and in customs. That is why we treat dwell as a first-class measured quantity rather than a fudge factor in the timetable.
| Terminal | Planned dwell | Median, Q3 2026 | P90, Q3 2026 |
|---|---|---|---|
| Dostyk / Alashankou | 14 h | 12 h | 21 h |
| Małaszewicze | 11 h | 16 h | 29 h |
| Brest (border checks) | 6 h | 7 h | 14 h |
| Customs IM1 at Małaszewicze | 18 h | 22 h | 46 h |
Read the third column against the second. Małaszewicze took sixteen hours in the median where we plan eleven, and on the pessimistic tenth it took twenty-nine. A planner who quotes from the plan is not being optimistic, he is being wrong on a majority of trains. Our published product times include that measured difference, which is why they are longer than the timetable arithmetic alone would suggest and why clients who build their own delivery promises on our ETA do not have to defend them afterwards.
The formula, written out
etaAt = departedAt
+ sum(lineHours for legs already run) // measured, from position reports
+ sum(dwellHours for exchanges already passed) // measured, from the event log
+ remainingLineHours // from the timetable
+ sum(dwellHours for exchanges still ahead) // planned, or measured P50 for this terminal
+ openExceptionHours // the delay events not yet clearedTwo properties fall out of this. The first is monotonicity: because the legs already run are measured rather than re-planned, an ETA cannot move backwards simply because somebody updated a timetable. It moves backwards only when the train actually made up time. The second is explainability: every term in that sum is a field in the record, so when a client asks why the date changed, the answer is a line of data, not a phone call to a dispatcher.
Where it still fails
Three situations defeat the model, and we would rather name them than hide them. A train held on a section with no reporting point drifts into the stale state and the ETA freezes at the last honest value — the number is then correct as of a timestamp and wrong as of now, and the interface says so. A customs decision that turns into a physical inspection adds days no measurement predicted, because the duration depends on the goods and not on the network. And a terminal that reports its own departure late gives us a measured dwell that includes somebody else’s queue, which is honest but not something the next train can rely on.
“An estimate that never surprises anybody is usually not an estimate but a wish.”
Internal planning review, Q2 2026
What we are actually selling is not accuracy in the abstract. It is the ability to say, on a Wednesday at 09:40 CET, that a specific 40′ high cube is on the exchange tracks at Małaszewicze, that it has been there for nine hours against a plan of eleven, and that the goods will be in Duisburg on the fourth of December rather than the second. The client can staff the shift. That is the whole point of the exercise.
Next on the corridor
- Gauge exchange at Dostyk and Małaszewicze: why two flat pieces of steel decide your delivery dateBetween Xi'an and Warsaw a container is lifted off its wheels exactly twice. It is the least glamorous hour on the corridor and the one that most often moves the ETA.
- Wiring rail tracking into 1C with four endpoints and one common moduleA client asked for the status of a train inside their sales order. It took an afternoon, and the reason it took an afternoon is worth writing down.
Put a number on the uncertainty
Send us one SMGS reference and we will return a live record for your next China–Europe train, on the same feed that powers the API.
ops@eurocargo.asia · 21 /week