UX 16 then LP 2485 at Madrid
La Mesa → Madrid → Lima
Timetable, Madrid time
05:00UX 16 from La Mesa at the gate
00:40LP 2485 to Lima leaves the gate
19 h 40 apart on the timetable, overnight
LP 2485 leaves 19 h 40 after UX 16 arrives on the timetable: more than half a day, so not a connection we count.