JA 7040 then LA 2198 at Lima
Cusco → Lima → Tacna
Timetable, Lima time
19:15JA 7040 from Cusco at the gate
18:45LA 2198 to Tacna leaves the gate
23 h 30 apart on the timetable, overnight
LA 2198 leaves 23 h 30 after JA 7040 arrives on the timetable: more than half a day, so not a connection we count.