QR 4768 then FR 3009 at Madrid
Firenze → Madrid → Milan
Timetable, Madrid time
09:20QR 4768 from Firenze at the gatealso IB 5350, VY 6034, AA 8867
09:15FR 3009 to Milan leaves the gate
23 h 55 apart on the timetable, overnight
FR 3009 leaves 23 h 55 after QR 4768 arrives on the timetable: more than half a day, so not a connection we count.