FR 3040 then W6 2376 at Barcelona
Prague → Barcelona → Budapest
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
09:25W6 2376 to Budapest leaves the gate
12 h 10 apart on the timetable, overnight
W6 2376 leaves 12 h 10 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.