@Matthew ************
This 90 days within 180 days was the rule about 10 years ago in thailand. Now its still aplies in Turkey and many Balkan non eu countries.
In Thailand back then the officers always had to count days haha. I would be happy if this was a clear rule now and always accepted by the io officers.