QR 3785 then FR 4587 at Barcelona
Tangier → Barcelona → Porto
Timetable, Barcelona time
09:55QR 3785 from Tangier at the gate
22:55FR 4587 to Porto leaves the gate
13 h apart on the timetable
FR 4587 leaves 13 h after QR 3785 arrives on the timetable: more than half a day, so not a connection we count.