FR 268 then W6 2372 at Madrid
Valletta → Madrid → Budapest
Timetable, Madrid time
20:25FR 268 from Valletta at the gate
20:00W6 2372 to Budapest leaves the gate
23 h 35 apart on the timetable, overnight
W6 2372 leaves 23 h 35 after FR 268 arrives on the timetable: more than half a day, so not a connection we count.