FR 9441 then W6 2498 at Madrid
Lisbon → Madrid → Budapest
Timetable, Madrid time
23:15FR 9441 from Lisbon at the gate
21:15W6 2498 to Budapest leaves the gate
22 h apart on the timetable, overnight
W6 2498 leaves 22 h after FR 9441 arrives on the timetable: more than half a day, so not a connection we count.