QR 3676 then IB 2296 at Madrid
Firenze → Madrid → Melilla
Timetable, Madrid time
14:00QR 3676 from Firenze at the gatealso IB 5786, VY 6036, AA 8866
12:35IB 2296 to Melilla leaves the gatealso VY 5696
22 h 35 apart on the timetable, overnight
IB 2296 leaves 22 h 35 after QR 3676 arrives on the timetable: more than half a day, so not a connection we count.