Method
How the forecast works, and how often it is right
A tariff quota is a fixed volume that importers draw from in the order their declarations are accepted. Tullage replays every comparable past period of the same quota from today's balance, calibrates the share still open on your date, and publishes how that number scored on 5,667 periods it never saw.

Allocations are published each working day. The pattern of past periods is the best guide to the next weeks.
Photo: Stock Birken, Unsplash1. The data: signed files, every weekday
Swedish Customs (Tullverket) publishes the EU TARIC database as PGP-signed XML: a weekly full file and a diff each weekday. Tullage checks every signature against Tullverket's published key before a file is read (37 of 37 files in this build), applies the diffs, and keeps every balance event since 2019: 617,393 of them. Each event's opening balance is checked against the previous closing balance; 99.97 % of 599,445 links agree, and the 173 breaks are listed, not hidden, because returns and carry-overs legitimately raise a balance.
The European Commission's own quota pages are the official reference, but their robots.txt disallows automated access, so Tullage never fetches them. Balances can trail the Commission by up to a working day.
2. The method: past periods, replayed from today
For a quota and a shipment date, Tullage takes every earlier period of the same order number with the same length. Each one replays its own draw-down from the same point in its period, on top of today's balance. The share of those replays in which the quota is still open on your date is the raw answer.
Quota 091806, cane sugar from South Africa, on 6 Nov 2026: 7 past periods replayed from a balance of 1,837,680 kg. 4 empty it before 15 Dec 2026, 3 leave it open.
3. Calibration: the share becomes a probability
A raw share of 5 out of 7 is not yet a 71 % chance. The backtest records how often each raw share turned out right at each horizon, and the answer is read through that table. With only one or two past periods the forecast is labelled thin history and calibrated on its own table. With no comparable past draw-down at all, the answer is unknown, with the recent pace given as arithmetic, never as a forecast.
A period counts as run out once the balance falls under 0.1 % of the volume, because a quota can read open with a few kilograms left that no shipment will get.
4. The backtest: out of sample, against two naive rivals
Calibrated on 5,754 periods that ended before 1 Jan 2022, then scored on 5,667 periods that started from then on, at five horizons: 151,213 forecasts. The two rivals are "open now, open then", which assumes nothing changes, and a straight line from the opening volume through today's balance. The Brier score is the mean squared error of a probability: 0 is perfect, lower is better.
Brier score by horizon, lower is better
| Horizon | Cases | Tullage | Open now, open then | Straight line | Run-outs warned |
|---|---|---|---|---|---|
| 7 days | 26,851 | 0.0156 | 0.0174 | 0.0523 | 54 % |
| 14 days | 26,843 | 0.0276 | 0.0349 | 0.1003 | 52 % |
| 30 days | 26,131 | 0.0405 | 0.0604 | 0.1553 | 66 % |
| 60 days | 23,698 | 0.0591 | 0.1004 | 0.2024 | 79 % |
| 90 days | 16,342 | 0.0614 | 0.1232 | 0.1204 | 82 % |
| On cases with a forecast | Tullage | Open now, open then |
|---|---|---|
| Brier score | 0.0395 | 0.0627 |
| Best-guess accuracy | 95.0 % | 93.7 % |
| Said open, then ran out | 2.1 % | 6.3 % |
| Run-outs it warned of | 70 % | 0 % |
Where it is weaker, it says so. At 7 and 14 days the yes or no guess only ties "open now, open then" (98.0 % against 98.3 %, 96.4 % against 96.5 %), and answers at those horizons state it. 13 % of cases have no comparable history and get unknown. Scored on periods that recorded at least one allocation; with the 1,992 undrawn periods put back, the Brier score is 0.0345 against 0.0545.
5. What it cannot know
- Demand that has not been declared yet, a sudden rush before a duty change, or a buyer who books the whole volume on day one.
- New legislation, a volume raised or cut mid-period, a transfer of unused volume, or a suspension.
- Your own allocation. Requests on the same day are shared pro rata, and allocation follows release for free circulation.
- Whether your goods qualify: classification, origin and end-use are for you, your broker and customs to decide.
Every answer states its method, the past periods it rests on and its backtest at the nearest horizon. The numbers on this page are reproducible from forecast.md and change only when the backtest is rerun, next on 15 April 2027.