Depends on school or program but expect 8 months. If a Masters and viewed as 2 full semesters maybe one year.
From the website:
The length of the work permit should coincide with the length of the program, as confirmed by the eligible DLI in the written confirmation of program completion (such as an official letter of completion or transcript).