DY 5503 then W6 2378 at Barcelona
Stockholm → Barcelona → Budapest
Timetable, Barcelona time
22:45DY 5503 from Stockholm at the gate
20:50W6 2378 to Budapest leaves the gate
22 h 05 apart on the timetable, overnight
W6 2378 leaves 22 h 05 after DY 5503 arrives on the timetable: more than half a day, so not a connection we count.