UX 175 then H2 5440 at Lima
Madrid → Lima → Jauja
Timetable, Lima time
05:50UX 175 from Madrid at the gate
05:45H2 5440 to Jauja leaves the gate
23 h 55 apart on the timetable, overnight
H2 5440 leaves 23 h 55 after UX 175 arrives on the timetable: more than half a day, so not a connection we count.