Tax residency and 183 days
Most countries use the 183-day rule: if you're in the country more than 183 days in the tax year you're resident. But some also look at "centre of vital interests" (family, main home). So you can be resident even under 183 days. Check the local rules.