it depends which office you go to, in krabi they require 3 months I was 5 days short because I had a bank fee come out a few times, there's also a multiple entry visa which you renew every 3 months but not sure if its doable with all the restrictions, some say 2 but do 3 just in case