according to the Thai tax professional I spoke to it’s 180 days but it’s money you “bring into Thailand” and the way you would do that is with a Thai bank accounts. If you have a foreign bank it’s just like how someone would have an “offshore bank account” as a tax haven. This is what he told me