Take the Statutory Residence Test as an indication and then discuss your finances with a tax professional who can interpret the decision. You must also follow similar steps in the country where you now live.