DY 1105 then W6 1786 at Oslo
Berlin → Oslo → Gdansk
Timetable, Oslo time
15:35DY 1105 from Berlin at the gate
12:40W6 1786 to Gdansk leaves the gate
21 h 05 apart on the timetable, overnight
W6 1786 leaves 21 h 05 after DY 1105 arrives on the timetable: more than half a day, so not a connection we count.