@Julian **********
okay you got your wires crossed.
There is no amount of time you have to stay outside of thailand, BUT some border crossings that require you spend a day in their country before you come back.
PRO-TIP; NEVER EVER border bounce at the Aranyaprathet - Poi Pet border with Cambodia.