IB 540 then FR 6713 at Madrid
Lisbon → Madrid → Budapest
Timetable, Madrid time
08:55IB 540 from Lisbon at the gatealso LA 1533, CX 1852, VY 5214, AY 5564, QR 6933, PC 7961, AA 8542
06:00FR 6713 to Budapest leaves the gate
21 h 05 apart on the timetable, overnight
FR 6713 leaves 21 h 05 after IB 540 arrives on the timetable: more than half a day, so not a connection we count.