The actual event I have described has standby and scheduled duty at 27 and a bit hours (2 crew on a 737 but only one out of standby) and one of the sectors had a go-around due to wind shear in the middle of the night with a twenty knot plus crosswind in mountainous terrain! What is the loophole allowing 31 hours?