you have a visa for 60 days....you can leave thailand....any time.....if you get 15 days in Vietnam. ..you can then return to thailand and get 30 days....so it's 60+15.+30....for your trip....you can even gerry another 30 days extension at immigration...