FR 4584 then FR 8631 at Barcelona
Porto → Barcelona → Tangier
Timetable, Barcelona time
18:55FR 4584 from Porto at the gate
10:55FR 8631 to Tangier leaves the gate
16 h apart on the timetable, overnight
FR 8631 leaves 16 h after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.