You must accumulate two years of physical presence in Canada in every five-year period. You can also count Canadian residency days if you are outside Canada for an extended period of time for one of the following reasons:
You are accompanying your Canadian-citizen spouse or common-law partner.
You are a child accompanying a Canadian-citizen parent.