H2 5471 then JA 7023 at Lima
ATA → Lima → Cusco
Timetable, Lima time
12:25H2 5471 from ATA at the gate
10:25JA 7023 to Cusco leaves the gate
22 h apart on the timetable, overnight
JA 7023 leaves 22 h after H2 5471 arrives on the timetable: more than half a day, so not a connection we count.