Tullage Check a quota

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.

Container cranes at a port at dusk, reflected in the water

Allocations are published each working day. The pattern of past periods is the best guide to the next weeks.

Photo: Stock Birken, Unsplash

1. 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.

15 Nov1 Dec15 Dec31 Dec0625k1.25m1.88m2.5mYour shipment, 15 Dec20192020202120222023202420256 Nov: 1,837,680 kg left

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

0.000.050.100.150.200.257 days14 days30 days60 days90 days7 days: 0.015614 days: 0.027630 days: 0.040560 days: 0.059190 days: 0.06147 days: 0.017414 days: 0.034930 days: 0.060460 days: 0.100490 days: 0.12327 days: 0.052314 days: 0.100330 days: 0.155360 days: 0.202490 days: 0.1204TullageOpen now, open thenStraight line
HorizonCasesTullageOpen now, open thenStraight lineRun-outs warned
7 days26,8510.01560.01740.052354 %
14 days26,8430.02760.03490.100352 %
30 days26,1310.04050.06040.155366 %
60 days23,6980.05910.10040.202479 %
90 days16,3420.06140.12320.120482 %
On cases with a forecastTullageOpen now, open then
Brier score0.03950.0627
Best-guess accuracy95.0 %93.7 %
Said open, then ran out2.1 %6.3 %
Run-outs it warned of70 %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.

Automated and unreviewed. Tullage reads official sources automatically and no person checks each answer. Data can be incomplete, late or wrong. Always verify against the official source linked with every answer before you act. Not legal, tax or customs advice. An answer is not binding tariff information: only the decision of the customs authority binds, and a balance is not a promise of allocation.