FR 5494 then FR 5931 at Madrid
Milan Bergamo → Madrid → Fes
Timetable, Madrid time
21:40FR 5494 from Milan Bergamo at the gate
14:45FR 5931 to Fes leaves the gate
17 h 05 apart on the timetable, overnight
FR 5931 leaves 17 h 05 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.