The best day to arrive at Madrid is Saturday and it would be best to avoid Wednesday, as prices are on average 157.15% higher than on Saturday. (Average prices, based on 288117 datapoints.)
The best time to fly is at around 19. (Average prices, based on 229 datapoints.)