Where were you at midnight?
You might not care. The tax man does. Midnights tracks your days against the tax residency and travel rules that matter—from the UK and US to Schengen and beyond.
Scroll
Made for lives lived across borders
Midnights is for the globally mobile
Every country counts your days differently
See the days counted, the rules that apply to you, and how close you are to each threshold—all in one dashboard.
Hover a rule to see how it counts
Dubai
Home
UAE tax residency
UAE231 days in the last 12 months · resident from day 183
Resident if you spend 183 days or more in the UAE in any 12 months, or 90 days with a permanent home or job there.
- 183 days in any 12 months
- 90 days with a home or job
Cabinet Decision No. 85 of 2022
London
Family
84of 90UK daysUK Statutory Residence Test
UK84 of 90 days · with 2 UK ties you're resident from day 91
The full test — automatic overseas tests, automatic UK tests, sufficient ties with their exact day bands, the deeming rule, and exceptional-circumstance and transit-day adjustments. Split-year treatment covers all 8 RFIG21000 cases, with their priority rules and permitted-limit tables, verified against the HMRC manual.
- Automatic overseas & UK tests
- Sufficient ties, exact day bands
Finance Act 2013, Sch. 45 · HMRC RDR3 · RFIG21000–21280
New York
Work
US Substantial Presence Test
US36 + ⅓ × 30 + ⅙ × 24 = 50 of 183
The actual 3-year weighted formula — current year's days, plus a third of last year's, plus a sixth of the year before — computed in scaled integer arithmetic to avoid the floating-point rounding errors that misplace someone right at the boundary.
- 3-year integer-weighted formula
- Exact boundary arithmetic
26 U.S.C. § 7701(b) · IRS Pub 519 · Substantial Presence Test
Lisbon
Holiday
Schengen 90-in-180
Schengen14 of 90 days in the last 180
The 90-days-in-any-180 rolling window, tracked as one pooled allowance across the whole Schengen area — not per-country — with both entry and exit days counted, matching how the regulation actually defines the rule.
- One pooled 90/180 window
- Entry and exit days both count
Regulation (EU) 2016/399, Art. 6(1)(b)
Every trip. One continuous timeline.
Know where you stand, before you book the flight
Add future travel to see how it would affect your limits before you book.
Hover a day to see its trip, or a country to see every night spent there.
Hover a day to see its trip · keep scrolling to plan the next one
Track your location manually or automatically
Add trips manually or let Midnights detect them automatically. Your location data is kept on your phone and never sent to our servers.
Today · 26 Jan
You’re in Dubai.
Allow “Midnights” to use your location?
Midnights checks which country you’re in at midnight. Your location stays on this iPhone.
PDF · page 1 of 13midnights-2026.csv5 rows
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Country | Arrival | Departure | Nights | Source | Note | UK work days |
| 2 | ES | 2026-05-30 | 2026-06-14 | 15 | manual | 0 | |
| 3 | PT | 2026-07-01 | 2026-07-20 | 19 | manual | 0 | |
| 4 | GB | 2026-07-20 | 2026-08-10 | 21 | manual | 0 | |
| 5 | FR | 2026-08-10 | 2026-08-30 | 20 | manual | 0 | |
| 6 | IT | 2026-09-05 | 2026-09-29 | 24 | manual | 0 | |
| 7 | |||||||
| 8 | |||||||
| 9 | |||||||
| 10 | |||||||
| 11 | |||||||
| 12 | |||||||
| 13 | |||||||
| 14 |
Your travel record, ready to share
Export your day counts and travel history as a PDF or CSV for your accountant.
FAQs
Keep crossing borders. Stop counting days.
No spreadsheets. No guesswork. Just a clear view of where you stand.