FR 5712 then AV 6208 at Madrid
Budapest → Madrid → Rome
Timetable, Madrid time
19:35FR 5712 from Budapest at the gate
11:40AV 6208 to Rome leaves the gate
16 h 05 apart on the timetable, overnight
AV 6208 leaves 16 h 05 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.