Believe it or not he could fly back tomorrow and if he has an exit flight within his visa period they cannot by law send you back and this is why it’s sometimes best to fly to maybe Vietnam or somewhere close
Then fly in to Bangkok because they can only send you back to where you flew from