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