FR 5322 then FR 690 at Madrid
Milan → Madrid → Vienna
Timetable, Madrid time
12:45FR 5322 from Milan at the gate
09:45FR 690 to Vienna leaves the gate
21 h apart on the timetable, overnight
FR 690 leaves 21 h after FR 5322 arrives on the timetable: more than half a day, so not a connection we count.