H2 5166 then JA 7023 at Lima
Arequipa → Lima → Cusco
Timetable, Lima time
23:10H2 5166 from Arequipa at the gate
18:00JA 7023 to Cusco leaves the gate
18 h 50 apart on the timetable, overnight
JA 7023 leaves 18 h 50 after H2 5166 arrives on the timetable: more than half a day, so not a connection we count.