It is difficult to answer this question not knowing which is the other country. But, if you hold Canadian, USA or 95% European Permanent Residencies then There is a physical presence clause which requires an individual to physcially reside in that country for a certain duration in a given year. For USA, a PR cannot be outside the country for more than 180 days in a 365 day year with some exceptions.