FR 5322 then CX 1923 at Madrid
Milan → Madrid → Lima
Timetable, Madrid time
19:45FR 5322 from Milan at the gate
13:25CX 1923 to Lima leaves the gate
17 h 40 apart on the timetable, overnight
CX 1923 leaves 17 h 40 after FR 5322 arrives on the timetable: more than half a day, so not a connection we count.