UX 1060 then FR 5713 at Madrid
Milan → Madrid → Budapest
Timetable, Madrid time
18:10UX 1060 from Milan at the gatealso AM 6846, EY 7527, AD 7890
12:30FR 5713 to Budapest leaves the gate
18 h 20 apart on the timetable, overnight
FR 5713 leaves 18 h 20 after UX 1060 arrives on the timetable: more than half a day, so not a connection we count.