SK 1811 then FR 8631 at Barcelona
Stockholm → Barcelona → Tangier
Timetable, Barcelona time
16:55SK 1811 from Stockholm at the gate
15:45FR 8631 to Tangier leaves the gate
22 h 50 apart on the timetable, overnight
FR 8631 leaves 22 h 50 after SK 1811 arrives on the timetable: more than half a day, so not a connection we count.