AA 8762 then IB 645 at Madrid
Valencia → Madrid → Milan Linate
Timetable, Madrid time
08:05AA 8762 from Valencia at the gate
07:35IB 645 to Milan Linate leaves the gatealso VY 5113, AA 8814
23 h 30 apart on the timetable, overnight
IB 645 leaves 23 h 30 after AA 8762 arrives on the timetable: more than half a day, so not a connection we count.