W4 6017 then FR 4587 at Barcelona
Rome → Barcelona → Porto
Timetable, Barcelona time
09:15W4 6017 from Rome at the gate
21:45FR 4587 to Porto leaves the gate
12 h 30 apart on the timetable
FR 4587 leaves 12 h 30 after W4 6017 arrives on the timetable: more than half a day, so not a connection we count.