FR 3147 then FR 4545 at Barcelona
Oujda → Barcelona → Porto
Timetable, Barcelona time
20:10FR 3147 from Oujda at the gate
10:20FR 4545 to Porto leaves the gate
14 h 10 apart on the timetable, overnight
FR 4545 leaves 14 h 10 after FR 3147 arrives on the timetable: more than half a day, so not a connection we count.