IB 392 then IB 1043 at Madrid
Doha → Madrid → Mahón
Timetable, Madrid time
09:05IB 392 from Doha at the gate
07:10IB 1043 to Mahón leaves the gate
22 h 05 apart on the timetable, overnight
IB 1043 leaves 22 h 05 after IB 392 arrives on the timetable: more than half a day, so not a connection we count.