EC 1703 then FR 2389 at Madrid
Nice → Madrid → Tetouan
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
15:25FR 2389 to Tetouan leaves the gate
18 h 45 apart on the timetable, overnight
FR 2389 leaves 18 h 45 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.