UX 16 then IB 123 at Madrid
La Mesa → Madrid → Lima
Timetable, Madrid time
01:05UX 16 from La Mesa at the gate
00:05IB 123 to Lima leaves the gatealso LA 1603, CX 1851, AY 5559, QR 6537, BA 7231
23 h apart on the timetable, overnight
IB 123 leaves 23 h after UX 16 arrives on the timetable: more than half a day, so not a connection we count.