IB 138 then SK 4304 at Madrid
Quito → Madrid → Copenhagen
Timetable, Madrid time
17:20IB 138 from Quito at the gate
17:00SK 4304 to Copenhagen leaves the gate
23 h 40 apart on the timetable, overnight
SK 4304 leaves 23 h 40 after IB 138 arrives on the timetable: more than half a day, so not a connection we count.