FR 3181 then VY 1178 at Barcelona
Rome → Barcelona → Porto
Timetable, Barcelona time
13:40FR 3181 from Rome at the gate
13:00VY 1178 to Porto leaves the gate
23 h 20 apart on the timetable, overnight
VY 1178 leaves 23 h 20 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.