IB 823 then SK 81 at Arlanda
Madrid → Stockholm → Visby
Timetable, Stockholm time
14:05IB 823 from Madrid at the gate
10:20SK 81 to Visby leaves the gate
20 h 15 apart on the timetable, overnight
SK 81 leaves 20 h 15 after IB 823 arrives on the timetable: more than half a day, so not a connection we count.