U2 3209 then FR 5713 at Madrid
Edinburgh → Madrid → Budapest
Timetable, Madrid time
20:05U2 3209 from Edinburgh at the gate
18:15FR 5713 to Budapest leaves the gate
22 h 10 apart on the timetable, overnight
FR 5713 leaves 22 h 10 after U2 3209 arrives on the timetable: more than half a day, so not a connection we count.