My OPT expires on Jan13 2018 and my H1B is still pending, Can i work in USA after Jan13th?

I am currently in F1 OPT and my OPT expires on Jan 13th 2018 (24 month extension) and my H1B application is pending with USCIS, Can I continue working after Jan 13th, if i didn’t receive a decision by the end date?

How long can i stay in USA if my H1B decision is pending ?

How long can i stay in USA if my H1B petition is denied ?