A Canadian study permit is valid for the duration of your study course in Canada, plus an additional 90 days.  

The extra 90 days are allotted for the purpose of either making preparations for leaving Canada or applying to extend stay in Canada as an international student.