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