FR 4586 then DY 5502 at Barcelona
Porto → Barcelona → Stockholm
Timetable, Barcelona time
19:45FR 4586 from Porto at the gate
13:40DY 5502 to Stockholm leaves the gate
17 h 55 apart on the timetable, overnight
DY 5502 leaves 17 h 55 after FR 4586 arrives on the timetable: more than half a day, so not a connection we count.