FR 5383 then FR 6713 at Madrid
Valletta → Madrid → Budapest
Timetable, Madrid time
20:05FR 5383 from Valletta at the gate
10:05FR 6713 to Budapest leaves the gate
14 h apart on the timetable, overnight
FR 6713 leaves 14 h after FR 5383 arrives on the timetable: more than half a day, so not a connection we count.