Methodology and test cases

Last reviewed 2026-11-28

We publish exactly how SchengenCount calculates results so you can check our work. All calculations run in your browser.

Legal basis

Article 6 of the Schengen Borders Code (Regulation (EU) 2016/399) allows stays of no more than 90 days in any 180-day period, "considering the 180-day period preceding each day of stay". Article 6(2) treats the date of entry as the first day of stay and the date of exit as the last day of stay, and excludes periods authorised by a residence permit or long-stay visa.

Rules we apply

  1. Calendar days. Every date between entry and exit, inclusive, counts as one day. Times and time zones are ignored.
  2. The window. For any day D, the window is the 180 days ending on D, including D. This follows the European Commission's guidance to count back 180 days from each day of stay, with the day itself included because entry and exit days count as days of stay.
  3. Compliance. A set of trips complies if, on every day you are present, the number of days present in that day's window is 90 or fewer.
  4. Days used on a check date are the days present in the window ending on that date.
  5. Latest exit. For a stay starting on day E, we extend the stay one day at a time while the rule holds on the new day, while the stay doesn't run into another trip, and while it doesn't push any later trip on your list over the limit. Because a single stay can't exceed 90 days, this check is exact.
  6. Earliest entry. For a stay of N days, we test each possible entry date from your chosen start, up to two years ahead, and return the first one where the stay fits.
  7. Ongoing trips (no exit date) count up to and including the check date.
  8. Overlapping trips — including two trips that share a day — are rejected, because they would count the same day twice. Enter a continuous stay as one trip.

What we don't model

  • Bilateral visa-waiver agreements between individual countries
  • Visas limited to fewer than 90 days, or to particular countries
  • Rules for Cyprus and Ireland, which are outside Schengen
  • Discretionary extensions granted by national authorities

Test cases

These cases were worked out by hand and are run automatically against our code every time it changes. You can enter any of them in the calculator, or in the European Commission's calculator.

Published test cases
#TripsQuestionExpected
11 Jan – 31 Mar 2026Compliant?Yes — exactly 90 days
21 Jan – 1 Apr 2026Compliant?No — over the limit on 1 Apr (1 day)
31 Jan – 31 Mar 2026Earliest re-entry; latest exit if entering then30 Jun 2026; leave by 27 Sep 2026 (90 days)
41–10 Jan and 1–20 Mar 2026Days used on 20 Mar 202630
51–10 Jan and 1–20 Mar 2026Latest exit if entering 1 May 20269 Jul 2026 (70 days)
61 Jan 2026 onlyLast day it is in the window29 Jun 2026 (gone on 30 Jun)
71 Jan – 30 Mar 2024 (leap year)Days90
8Planned 1 Aug – 29 Sep 2026Latest exit if entering 1 Jun 202630 Jun 2026 — a longer stay would push the planned trip over 90

Before each release we also compare the engine with a separate, independently written brute-force implementation on thousands of random itineraries. That work is documented in our QA report.

Found a mistake?

Please contact us with the trips you entered and the result you expected. We fix calculation errors as the top priority.