Flight Suvarnabhumi Airport departs from Bangkok Suvarnabhumi Airport at 21:55 and arrives at Shanghai Pudong International Airport at 03:45.
The flighttime is about 4h 50m. The distance travelled ("as the bird flies"): 2420 Km. So the average speed is roughly 501 Km.
There is an 1 hour time difference between Bangkok and Shanghai