It should be noted that the 183 days rule isn't enough for certain countries. If your home country is New Zealand or UK, for example, cutting tax residency ties is a much more complex subject as they analyze your "intention" of leaving and other subjective considerations.
So, make sure to check...