FR 5801 then FR 6713 at Madrid
Nador → Madrid → Budapest
Timetable, Madrid time
09:20FR 5801 from Nador at the gate
06:00FR 6713 to Budapest leaves the gate
20 h 40 apart on the timetable, overnight
FR 6713 leaves 20 h 40 after FR 5801 arrives on the timetable: more than half a day, so not a connection we count.