FR 647 then IB 818 at Copenhagen
Málaga → Copenhagen → Madrid
Timetable, Copenhagen time
21:55FR 647 from Málaga at the gate
15:30IB 818 to Madrid leaves the gate
17 h 35 apart on the timetable, overnight
IB 818 leaves 17 h 35 after FR 647 arrives on the timetable: more than half a day, so not a connection we count.