SK 1842 then SK 89 at Arlanda
Rome → Stockholm → Visby
Timetable, Stockholm time
23:55SK 1842 from Rome at the gate
18:05SK 89 to Visby leaves the gate
18 h 10 apart on the timetable, overnight
SK 89 leaves 18 h 10 after SK 1842 arrives on the timetable: more than half a day, so not a connection we count.