What is the Travel Days Counter?
If you split your time between countries, sooner or later you have to answer a deceptively simple question: how many days have I actually spent here? That number sits behind a tax-residency test, a visa condition, or the US IRS Substantial Presence Test — and it is easy to get wrong when trips overlap, get rebooked, or straddle a year boundary.
This counter takes up to eight entry/exit date ranges, deduplicates any overlapping or touching days so a calendar day is only ever counted once, and reports the total under the counting convention you choose. It then checks that total against a threshold (183 by default) over two independent windows — the current calendar year and a rolling 365-day window — and can optionally run the IRS Substantial Presence Test weighting.
Why there are two counting conventions
Real statutory tests genuinely disagree on what counts as “a day”, so the tool exposes a toggle rather than silently picking one:
- Inclusive (“any part of a day”) — used by the IRS and the OECD Model Tax Convention. If you were present for any part of a day it counts, so both the arrival day and the departure day count: per trip
(exit − entry) + 1. - Nights (midnight rule) — the UK Statutory Residence Test default. A day counts only if you were still in the country at the end of the day, so the arrival day counts but the departure day usually does not: per trip
(exit − entry), i.e. the number of nights.
Two windows, two separate threshold checks
The 183-day line is only meaningful measured inside a bounded ~12-month period, so the counter never reduces it to one ambiguous flag driven by the raw total. Instead it reports a threshold status and a days-remaining figure for each window separately:
- Calendar year — days falling in the same 1 January – 31 December year as your “as of” date. Future-dated days within that year still count, so you can project a plan.
- Rolling 365 days — a fixed 365-date window ending on your “as of” date; it can span two calendar years and never includes days after “now”.
The two windows can legitimately disagree near a year boundary, which is exactly why they are shown side by side. If you specifically need the EU short-stay rule, use the dedicated Schengen 90/180-day calculator instead — that tracks 90 days in any rolling 180-day period, a different rule from the 183-day line here. If your concern is passport validity rather than presence, the passport six-month rule checker answers that question.
How the day count is calculated
For each entered trip with entry date E and exit date X, the tool builds the set of calendar days you were present, takes the union across every trip (deduplicating overlaps and touching ranges), and filters that set by each window:
daysInclusive = (X − E) + 1 # any part of a day daysNights = (X − E) # midnight rule D = union of every present day across all trips # overlaps counted once totalDays = |D| currentYearDays = days in D whose year == year(asOfDate) rolling365Days = days in D within [asOfDate − 364 .. asOfDate] thresholdMet(window) = windowDays >= T # T = 183 by default daysRemaining(window) = max(0, T − windowDays)
The >= boundary is inclusive: exactly 183 days meets the threshold with 0 remaining. Day differences use UTC calendar arithmetic, so a leap day inside a range is counted correctly (28 Feb → 1 Mar is 3 days in 2024 but 2 days in a non-leap year).
Worked example
Three separate 2026 trips, counted with the inclusive convention as of 31 December 2026 (so both windows coincide). Generated by the same engine that powers the calculator above.
| Step | Value |
|---|---|
| Trip 1 · 5 Jan – 20 Jan 2026 | 16 days |
| Trip 2 · 10 Apr – 25 Apr 2026 | 16 days |
| Trip 3 · 15 Jun – 30 Sep 2026 | 108 days |
| Total distinct days (no overlaps) | 140 days |
| Days in the 2026 calendar year | 140 days |
| Days in the rolling 365-day window | 140 days |
| Calendar-year threshold met? | No |
| Days remaining (calendar year) | 43 days |
| Rolling-365 threshold met? | No |
| Days remaining (rolling 365) | 43 days |
The three trips are 16 + 16 + 108 = 140 days and do not overlap, so the total is 140. That is below 183, leaving 43 days before the threshold would be met in either window.
The optional IRS Substantial Presence Test
Turning on SPT mode reuses the trips you already entered, buckets them by calendar year, and applies the IRS weighting: current-year days, plus one-third of the first preceding year, plus one-sixth of the second preceding year. You meet the test when the weighted total reaches 183 and you were present at least 31 days in the current year.
How common residency rules compare
The 183-day line appears across several regimes, but the day convention and the measurement window differ. This is a reference summary, not a determination for any specific case:
| Rule | Day convention | Window | Threshold |
|---|---|---|---|
| IRS Substantial Presence Test (US) | Any part of a day (both endpoints) | Weighted 3-year total | 183 weighted + 31 in the current year |
| UK Statutory Residence Test | Midnight rule (nights) | UK tax year | 183 days (automatic UK residence) |
| OECD Model Tax Convention, Art. 15 | Days of physical presence | Any 12-month period | 183 days |
Assumptions and limitations
This is an informational day counter, not tax, immigration or legal advice. It counts raw physical-presence days only and deliberately does not model statutory exclusions:
- IRS carve-outs for exempt individuals, cross-border commuters, medical conditions that prevented you leaving, and transit days (Form 8843) are not applied.
- The UK SRT deeming rule and its capped “exceptional circumstances” exclusion are not applied.
- Overlap dedupe assumes every entered range is presence in a single jurisdiction — do not mix trips to different countries into one total.
- Actual residency depends on treaty tie-breakers, domicile and sufficient-ties tests this tool does not model. Only a qualified tax professional or the relevant tax/immigration authority can give an authoritative answer.
If you are just measuring an interval between two dates for a non-tax reason, the age difference calculator gives a plain years/months/days breakdown instead.
Frequently asked questions
What counts as a 'day' for tax-residency purposes?+
It depends on the rule you're checking against. Under the IRS and OECD 'day of physical presence' method, you count a day if you were in the country for any part of it — so both your arrival day and your departure day count. Under the UK's midnight rule, a day only counts if you were still there at the end of the day, so your arrival day counts but your departure (exit) day usually doesn't — that gives the number of nights instead. This calculator lets you switch between the two conventions.
Why does the same trip give a different day count depending on the convention?+
A trip from March 1 to March 10 is 10 days under the inclusive 'any part of a day' rule (both endpoints count) but only 9 nights under the midnight rule (the departure day is excluded). Neither number is 'wrong' — they answer different statutory questions, so pick the convention that matches the specific residency test you're checking.
If two trips overlap, do the overlapping days get counted twice?+
No. The calculator builds the union of every day you were present across all entered trips, so an overlapping or touching date range is only counted once. Entering May 1-15 and May 10-20 as two trips gives 20 total days (May 1-20), not the naive sum of 15+11=26.
What's the difference between the calendar-year count and the rolling-365-day count?+
The calendar-year count only looks at days that fall within the same Jan 1 - Dec 31 year as your 'as of' date. The rolling-365-day count instead looks at a fixed 365-day window that ends on your 'as of' date, regardless of calendar year boundaries — so it can span parts of two different years. Some residency tests use a calendar-year window; others (like many treaty '183 days in any 12-month period' clauses) use a rolling window. This calculator shows both, each with its own threshold flag and days-remaining figure.
Why are there two separate 'threshold met' results instead of one?+
Because the calendar-year count and the rolling-365-day count can genuinely disagree — a trip near a year boundary might push one over the threshold while leaving the other under it. Showing a single combined flag would hide that distinction, so the calculator reports a threshold status and days-remaining figure for each window separately.
What is the IRS Substantial Presence Test (SPT) mode?+
It's an optional US-specific calculation: your current-year days, plus one-third of your prior-year days, plus one-sixth of the days from two years before, must add up to at least 183, AND you must have been present at least 31 days in the current year. If both conditions are met, you meet the IRS's Substantial Presence Test for federal tax residency purposes. Turning on SPT mode reuses the same trip dates you've already entered, bucketed by calendar year.
Why did I meet the weighted 183-day SPT total but the calculator still says I'm not a resident under SPT?+
The Substantial Presence Test has two separate conditions, and both must be true: the weighted 3-year total must reach 183, AND you must have been physically present at least 31 days in the current year alone. It's possible to clear the weighted total mostly on the strength of prior years' travel while falling short of the 31-day current-year floor — in that case the test is not met, regardless of the weighted total.
Does this calculator apply statutory exemptions like exempt-individual, commuter, medical or transit days?+
No. Real residency tests carve out specific categories — for example, the IRS excludes certain visa holders, commuters from Canada/Mexico, and days you couldn't leave due to a medical condition, while the UK's Statutory Residence Test has its own deeming rule and 'exceptional circumstances' exclusion (capped at a small number of days). This calculator counts raw physical-presence days only; it does not know about your visa category, employer, or medical history, so treat the result as a starting point, not a final answer.
Is this the same as the Schengen 90/180-day calculator?+
No. The Schengen calculator tracks a specific EU short-stay rule (no more than 90 days in any rolling 180-day period across the Schengen Area). This Travel Days Counter is a general-purpose day counter with a user-editable threshold (default 183) intended for broader tax-residency-style questions, including the US Substantial Presence Test. If you specifically need the Schengen 90/180 rule, use that dedicated calculator instead.
Can I use this for future or planned trips, not just past travel?+
Yes. Days from a trip dated after your 'as of' date still count toward the current calendar year's total (so you can see a year-to-date-plus-planned projection), but they are excluded from the rolling-365-day window, since that window always ends at your 'as of' date and represents days used up to now, not projected future presence.
How many trips can I enter?+
Up to 8 separate entry/exit date ranges. If you have more than 8 trips in the period you're checking, combine adjoining or nearby ranges into a single row before entering them — the total day count is unaffected as long as every day you were present is captured somewhere.
Is this tool tax, immigration or legal advice?+
No. It's an informational day counter to help you track your own travel history against a common threshold. Actual residency, tax and visa determinations depend on treaty tie-breaker rules, domicile, sufficient-ties tests, and statutory exclusions this tool doesn't model. For anything with real financial or legal consequences, confirm your position with a qualified tax professional or the relevant tax/immigration authority.
Disclaimer
Sources
- IRS — Substantial Presence Test
- HMRC RFIG20710 — counting days present in the UK (midnight rule)
- HMRC RDR3 — Statutory Residence Test guidance note
- OECD Model Tax Convention — Article 15(2), days-of-physical-presence method
Formula and data last reviewed by the TheCalculatorHive team on 13 July 2026. Figures are for general information, not professional advice.
Related calculators
Check whether your Schengen-area trips comply with the 90-days-in-any-180 short-stay rule, and see how many days are left or when a fresh 90 days opens.
Passport ValidityCheck whether your passport meets a destination's minimum-validity rule — six months from entry, three months from departure, or the EU/Schengen test.
Fuel CostWork out a trip's fuel cost from the distance, your vehicle's fuel economy and the pump price — in US MPG, Imperial MPG, km/L or L/100km, split among passengers.