FR 189 then IB 1361 at Madrid
Edinburgh → Madrid → Tangier
Timetable, Madrid time
18:35FR 189 from Edinburgh at the gate
11:25IB 1361 to Tangier leaves the gatealso QR 5064, AT 5308, VY 5437, BA 7095, AA 8560
16 h 50 apart on the timetable, overnight
IB 1361 leaves 16 h 50 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.