FR 6712 then UX 1047 at Madrid
Budapest → Madrid → Rome
Timetable, Madrid time
18:10FR 6712 from Budapest at the gate
15:00UX 1047 to Rome leaves the gate
20 h 50 apart on the timetable, overnight
UX 1047 leaves 20 h 50 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.