FR 605 then DY 2063 at Copenhagen
Budapest → Copenhagen → Riga
Timetable, Copenhagen time
15:40FR 605 from Budapest at the gate
11:55DY 2063 to Riga leaves the gate
20 h 15 apart on the timetable, overnight
DY 2063 leaves 20 h 15 after FR 605 arrives on the timetable: more than half a day, so not a connection we count.