Please be aware that Beijing and Shanghai has multiple airports and that these results are for all airports serving the city.
The best day to arrive at Beijing is Monday and it would be best to avoid Thursday, as prices are on average 256.99% higher than on Monday. (Average prices, based on 202 datapoints.)
The best time to fly is at around 7. (Average prices, based on 221 datapoints.)