Rolling Window Days Calculator

Many visa and tax rules are written as "no more than X days in any Y days". Set your rule, add your stays, and see days used, any overstays, and how long you can stay next time.

Rules last checked against official sources: 29 September 2026

Quick answer

A rolling-window rule such as "90 days in any 180" is checked on every single day: count that day and the days before it in the window, and the total must not exceed the limit. Calendar years and visa years don't matter. Days drop out of the window one at a time.

The X in "X days in any Y days".
The Y. Use 365 for "in any 12 months".
Defaults to today.
Shows how long you could stay.
Finds the earliest arrival date that allows it.
🔒 Your dates are saved only in this browser. Nothing is sent to us.

When to use this calculator

Use it for any rule written as a maximum number of days within a moving window, where both arrival and departure days count. For example:

Always check the exact wording of the rule you're following. If it says "in a calendar year" or "per visit" rather than "in any period", it isn't a rolling rule. Try our 183-day calculator for calendar-year counts.

How the calculation works

For every day you're in the country, the calculator counts that day plus the days before it inside the window (179 days back for a 180-day window). If the count is ever over your limit, it flags the first day of each overstay. Arrival and departure days both count as days present. Overlapping stays are only counted once.

It can also plan ahead. Enter a next arrival date to see the last day you could stay, or a number of days to find the earliest arrival date that allows a stay that long.

Frequently asked questions

What does "90 days in any 180 days" mean?
On any day you are in the country, you look back over that day and the 179 days before it. You may not have been present on more than 90 of those days.
Does the window reset on 1 January?
No. A rolling window moves forward one day at a time. Calendar years are irrelevant.
Do arrival and departure days count?
This calculator counts both as days present, which is how most rolling stay limits work. Check the rule you are following.

Official sources

Add this calculator to your website

Run an immigration, relocation or expat site? You can embed this calculator for free. Copy the code below into your page. It resizes automatically, works on mobile, and your visitors' dates stay in their own browser.