Some airline companies will issue you with a dummy boarding pass for the return to be under the 30 days as you may get questioned on arrival at Bangkok airport. Your visa on arrival is 30 days, they may ask about your return date. Emirates did this for me on two previous occasions...