The length of time an expat spends in a country can give that country a claim to charge taxes on income and gains. Generally, after six months an expat becomes a tax resident.