U2 2047 then FR 5931 at Madrid
Manchester → Madrid → Fes
Timetable, Madrid time
20:55U2 2047 from Manchester at the gate
14:45FR 5931 to Fes leaves the gate
17 h 50 apart on the timetable, overnight
FR 5931 leaves 17 h 50 after U2 2047 arrives on the timetable: more than half a day, so not a connection we count.