FR 2390 then FR 188 at Madrid
Tetouan → Madrid → Edinburgh
Timetable, Madrid time
17:15FR 2390 from Tetouan at the gate
05:55FR 188 to Edinburgh leaves the gate
12 h 40 apart on the timetable, overnight
FR 188 leaves 12 h 40 after FR 2390 arrives on the timetable: more than half a day, so not a connection we count.