If Parliament accepts the withdrawal agreement next week, the Article 50 period can be extended till May 22nd.
Theresa May's resignation will have no effect on the Commons procedures to this effect.
The Withdrawal Agreement never gets through parliament. Theresa May resigns this weekend. Parliament operates perfectly well without her and votes to cancel Brexit.
Damn, that's good.