Hi mate, I got into this situation when I first flew out of Doha (thankfully have a multi-exit permit now) but you can fly out the DATE it expires, in your case up to midnight on the 3rd. It certainly wouldn't hurt to contact the airline but as I say this happened to me and had no probs, flew out at approx 10pm on the date of expiry.