IB 126 then EC 1704 at Madrid
Lima → Madrid → Nice
Timetable, Madrid time
14:20IB 126 from Lima at the gatealso QR 5071, LA 5391, BA 7233, LY 9220
13:10EC 1704 to Nice leaves the gate
22 h 50 apart on the timetable, overnight
EC 1704 leaves 22 h 50 after IB 126 arrives on the timetable: more than half a day, so not a connection we count.