Any part of a day spent in a country counts as a presence day there, so a travel day is a presence day in both countries. The overnight marker records where midnight was spent. Departed/arrived times are evidence annotations stored exactly as entered — they never affect any count. Rolling windows span exactly M calendar months: a window anchored on day E runs from (but excluding) the same day-of-month M months earlier, through and including E. Each ledger row carries its source; coverage below discloses unlogged days and unresolved border crossings rather than hiding them.
⚠ These counts are indicative only and not legal or tax advice. Day-counting rules have edge cases; always confirm your residency position with a qualified advisor before relying on it.