LA 2199 then JA 7029 at Lima
Tacna → Lima → Cusco
Timetable, Lima time
23:15LA 2199 from Tacna at the gate
19:25JA 7029 to Cusco leaves the gate
20 h 10 apart on the timetable, overnight
JA 7029 leaves 20 h 10 after LA 2199 arrives on the timetable: more than half a day, so not a connection we count.