SK 780 then DY 2063 at Copenhagen
Budapest → Copenhagen → Riga
Timetable, Copenhagen time
12:25SK 780 from Budapest at the gate
11:55DY 2063 to Riga leaves the gate
23 h 30 apart on the timetable, overnight
DY 2063 leaves 23 h 30 after SK 780 arrives on the timetable: more than half a day, so not a connection we count.