@Dennis ********
It isn’t listed anywhere as a fixed rule. There is no published regulation that defines a specific number of days allowed within a rolling cycle. This is simply how Thai Immigration has applied discretion in practice for many years. When assessing entry, the IO looks at your overall travel pattern, including how long you have spent in Thailand over time, how frequently you enter, and whether your stays resemble genuine tourism or de facto long term residence without the appropriate visa. The concept of total time spent within a rolling cycle comes from observed practice and case handling, not from a written statute or formal limit.
If you prefer simpler wording, it is generally the case that if you maximise two visa exemptions within a period and spend around 180 days in Thailand without a visa, your third entry attempt becomes a gamble and can just as easily go wrong as go through without issues.