I know the UK allows you 180 days continuous stay, and then you have to leave, but can technically just wait a day and come back, the only problem is the border agent might not like it.
https://www.gov.uk/hmrc-internal-manuals/residence-domicile-...
Up to 60 days can be disregarded in the case of "exceptional circumstances", which generally have to be pretty extreme.