LO 4766 then FR 5713 at Madrid
Lisbon → Madrid → Budapest
Timetable, Madrid time
17:10LO 4766 from Lisbon at the gate
09:40FR 5713 to Budapest leaves the gate
16 h 30 apart on the timetable, overnight
FR 5713 leaves 16 h 30 after LO 4766 arrives on the timetable: more than half a day, so not a connection we count.