You must have resided in Canada for at least three years (1,095 days) in the past four years before you apply for citizenship.
When you are a permanent resident, you can live outside of Canada, but must live in Canada for at least two years in a five-year period. If you live outside of Canada for longer, you may lose your permanent resident status.
A sincere request to all... reply ONLY when you have the facts and numbers right...your one wrong reply could affect someone's planning and application...