3O 641 then FR 4545 at Barcelona
Tangier → Barcelona → Porto
Timetable, Barcelona time
19:103O 641 from Tangier at the gate
17:15FR 4545 to Porto leaves the gate
22 h 05 apart on the timetable, overnight
FR 4545 leaves 22 h 05 after 3O 641 arrives on the timetable: more than half a day, so not a connection we count.