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