FR 2724 then FR 6845 at Copenhagen
Krakow → Copenhagen → Gdansk
Timetable, Copenhagen time
21:45FR 2724 from Krakow at the gate
13:10FR 6845 to Gdansk leaves the gate
15 h 25 apart on the timetable, overnight
FR 6845 leaves 15 h 25 after FR 2724 arrives on the timetable: more than half a day, so not a connection we count.