Flight Haneda Airport departs from Tokyo Haneda Airport at 22:40 and arrives at Shanghai Hongqiao International Airport at 01:15.
The flighttime is about 3h 35m. The distance travelled ("as the bird flies"): 2072 Km. So the average speed is roughly 578 Km.
There is an 1 hour time difference between Tokyo and Shanghai