Thank you.I dont remember exact time period but if you apply before your status expires all good you can work even your work permit get expire . You can check online as well.
Yeah I know I can continue working for my current employer. but my case is that I got a job offer from another company a few days ago, the company requests my new work permit, otherwise they are not able to continue hiring process.