Please be aware that Tokyo and Shanghai has multiple airports and that these results are for all airports serving the city.
The best day to arrive at Tokyo is Monday and it would be best to avoid Wednesday, as prices are on average 271.34% higher than on Monday. (Average prices, based on 216 datapoints.)
The best time to fly is at around 20. (Average prices, based on 274 datapoints.)