FR 6712 then FR 8717 at Madrid
Budapest → Madrid → Manchester
Timetable, Madrid time
12:55FR 6712 from Budapest at the gate
11:05FR 8717 to Manchester leaves the gate
22 h 10 apart on the timetable, overnight
FR 8717 leaves 22 h 10 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.