The best day to arrive at Madrid is Tuesday and it would be best to avoid Sunday, as prices are on average 148.15% higher than on Tuesday. (Average prices, based on 551 datapoints.)
The best time to fly is at around 12. (Average prices, based on 200 datapoints.)