Everyday Tools

How to Track Days Spent in Each Country for Tax and Visa Rules

Log stays, count days per country by tax year and rolling window, and watch the 183-day mark and US presence test, with an example and common mistakes.

Saizul Amin
Saizul Amin5 Nov 2026 · 4 min read
How to Track Days Spent in Each Country for Tax and Visa Rules

How to Track Days Spent in Each Country for Tax and Visa Rules

If you spend long stretches abroad, sooner or later someone will ask how many days you were in a country. A tax adviser needs it for a residency question, a visa form asks for every trip in the last five years, or an employer wants to know whether you triggered a payroll obligation. Reconstructing that from old boarding passes is miserable. Keeping a running log is easy, and the Travel Days Counter by Country does the counting for you.

Record stays, not flights

Each entry is one stay in one country:

  • country
  • arrival date
  • departure date, left empty while you are still there
  • purpose, such as work, family or living there
  • city and a note for flight numbers, visa type or address

The tracker works out the days in each stay. With the departure blank, it counts up to today.

Set the rules you care about

Open Settings for the log and fill in:

  1. Home country. It is left out of the days abroad totals.
  2. Tax year start. 1 January for the US and most countries, 6 April for the UK, 1 July for Australia.
  3. Day limit. 183 is common, but use whatever threshold matters to you.
  4. Rolling window. 365 days by default; set 180 for a rough Schengen-style view.
  5. Count arrival and departure days. Yes by default, because most rules count any day of presence. The UK counts days when you are present at midnight, so No is a rough approximation there.

A worked example

Here is a year split between four countries, with the UK as home and a calendar tax year:

CountryArrivedLeftDays
Spain10 Jan28 Mar78
United Kingdom28 Mar2 May36
Portugal2 May30 Jul90
United States1 Aug21 Aug21
Spain21 Augstill theregrows daily

By early November 2026 Spain reaches about 154 days. That passes 80% of the 183-day limit, so the tracker shows a warning that 29 days remain. Every day you stay adds one more, which gives you time to decide whether to leave, take advice or accept the consequences.

Because there is a US stay, the tracker also runs the substantial presence test: days this year plus a third of last year plus a sixth of the year before. It only applies when you were in the US for at least 31 days this year, so with 21 days it shows zero.

Change the tax year to start on 6 April and the totals shift. The first Spanish stay falls into the previous tax year, so Portugal, with 90 days, becomes the country with the most days in the current one. The tax year matters as much as the dates.

Reports for forms

The Summary tab groups stays by country with all-time days and days this tax year, and each country can print a travel history. Travel history CSV exports every stay in a simple format that is easy to copy into visa applications, which often ask for exact dates.

Common mistakes

  • Logging only long trips. Weekend visits add up. A dozen short trips can move you over a threshold.
  • Double-checking travel days. When you fly from Spain to the UK on 28 March, that day counts in both countries with the default setting. That is correct for most presence tests, but know which rule you are applying.
  • Mixing up tax years. A UK resident who counts from 1 January will get the wrong answer.
  • Treating 183 days as the whole story. Many countries decide residency on where your home, family and work are, and treaties settle cases where two countries both claim you.
  • Ignoring Schengen. The 90 in any 180 days rule covers the whole Schengen area together. A 180-day window gives a rough total, but use an official calculator to check.
  • Never backing up. The log lives in your browser. Save a JSON backup now and then.

Day-count rules are only one part of residency and immigration law. This guide helps you keep records and is not tax or immigration advice.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages