FR 5712 then UX 1041 at Madrid
Budapest → Madrid → Rome
Timetable, Madrid time
19:35FR 5712 from Budapest at the gate
12:40UX 1041 to Rome leaves the gatealso EY 4330
17 h 05 apart on the timetable, overnight
UX 1041 leaves 17 h 05 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.