In order to maintain your permanent resident status, you have to have spent a minimum of 730 days in Canada in the past five years. These 730 days do not have to be all  at the same time. Some of your outside of Canada may be counted as part of these 730 days.