if you enter on tourist visa they give you 30 days, you can go to emigration bureau in Bangkok or Chiangmai and extend do 30 more days cost 1900bt you don’t have to wait till your 30days expire or you can leave the country and reenter they give you 30 days.. total 60 max