There's no right answer but I would say 10 days in Thailand is the minimum to have a real taste of it. If you can, 3 weeks tend to be best for most. This way you can spend time in Bangkok, in the north, on the islands... this way you can see the different faces of Thailand.