How BorderDays counts your days
Last updated: 19 September 2026
This page explains exactly what the calculator does, so you can check any result by hand.
From trips to days
Each trip is a country, an arrival date and a departure date. A trip with no departure date is counted up to today; a planned trip with no departure date counts only its arrival day. Days that two trips to the same country share are counted once. A travel day can count in two countries at once, because most laws count any part of a day.
Two ways to count a day
Most rules count any part of a day, so arrival and departure days are full days. These rules count only the nights spent in the country, so the departure day does not count:
The period each rule looks at
Calendar year from 1 January to 31 December, unless listed below.
Tax years with another start date:
- United Kingdom tax residency: from 6 April
- Australia tax residency: from 1 July
- India tax residency: from 1 April
- South Africa tax residency: from 1 March
Moving windows: the count is re-done every day over the previous days, so old days drop out as new ones are added.
- 180 days: Schengen 90/180 rule
- 365 days: New Zealand tax residency, Portugal tax residency, Greece tax residency, Estonia tax residency, Croatia tax residency, Georgia tax residency, United Arab Emirates tax residency, Indonesia tax residency, Brazil tax residency, Colombia tax residency, Chile tax residency, Peru tax residency
One continuous stay, where short breaks do not interrupt the stay:
- Germany tax residency: breaks of up to 14 days are ignored
- Switzerland tax residency: breaks of up to 3 days are ignored
Rules with more than one test
- United States tax residency: Weighted three-year test: days this year + one third of last year + one sixth of the year before, with at least 31 days this year.
- United Kingdom tax residency: Automatically non-resident below 16 days (if UK resident in any of the previous three tax years) or below 46 days (if not); in between, the sufficient ties test decides.
- Ireland tax residency: Also resident with 280 days over this year and last year combined, ignoring a year with 30 days or fewer.
- Italy tax residency: The limit is the majority of the tax year: 183 days, or 184 in a leap year.
- India tax residency: Also resident with 60 days this year plus 365 days in the four previous years.
- South Africa tax residency: Requires more than 91 days in the current year and in each of the five previous years, and more than 915 days in total over those five years.
What the colours mean
- Safe: below the warning level, which is 80% of the limit unless a rule sets its own (Schengen 90/180 rule from 75 days; United Kingdom tax residency from 16 days).
- Getting close: at or above the warning level.
- Limit ahead: trips you have already recorded for the future reach the limit.
- Limit reached: the limit was reached on a day that has already passed.
How the planner decides
The longest stay is the longest continuous stay from the chosen date for which no day of the stay is at or over the limit, and which does not bring forward a breach that your other trips would cause later. The planner looks up to 730 days ahead.
The earliest start is the first date, within about three years, on which a stay of the length you chose passes the same test. For rules that count nights, the latest departure is the morning after the last counted night.
Importing Google Maps Timeline
The Timeline file is read in your browser. Each location is placed in a country using Natural Earth borders at 1:50 million scale, which are accurate to within a few kilometres. Locations up to 0.25° from a border (coasts, lakes, GPS drift) go to the nearest country; locations further out at sea are skipped.
Some territories are drawn inside another country on that map and are separated because they follow different rules: French Guiana, Guadeloupe, Martinique, Réunion and Mayotte from France; Gibraltar; the Caribbean Netherlands from the Netherlands; Svalbard and Jan Mayen from Norway; and the Vatican, Ceuta and Melilla, which are smaller than the map's resolution.
A country counts on a day when a recorded stay, or the start or end of a journey, falls in it that day, when at least two raw GPS fixes do, or when it is the only country that day, so a single stray GPS fix across a border does not add a country. Dates use the time zone stored in the file; older files without one use an estimate based on longitude. Every imported trip is shown for review before it is added.
Where the rules come from
Every rule was checked against a named source on the date shown. Most were compared with PwC Worldwide Tax Summaries and, where a country publishes one, the tax authority's own page. When the two disagree we follow the law: PwC still describes Chile's rule from before Law 21.210 of 2020, and says "more than 183 days" for Estonia where the Estonian Tax and Customs Board says "at least 183 days".
A routine runs every week: it checks that every source still answers, reports rules not re-checked for 180 days, and flags any PwC summary reviewed after our last check.
What BorderDays does not model
- Tests that do not depend on days: your home, family, centre of economic interests, domicile or nationality.
- Tie-breaker rules in tax treaties when two countries consider you resident.
- Days that some laws exclude, such as transit days, days kept in a country by illness or force majeure, or days as an exempt student, diplomat or crew member.
- Split-year treatment and the exact date residence starts or ends.
- Visa types: for Schengen, do not enter days spent in a country on its residence permit or long-stay visa.
Found a mistake?
Please tell us at the contact address listed in the footer of this site, with a link to the source that shows the correct rule.