LA 2216 then JA 7027 at Lima
Tacna → Lima → Cusco
Timetable, Lima time
11:35LA 2216 from Tacna at the gate
10:40JA 7027 to Cusco leaves the gate
23 h 05 apart on the timetable, overnight
JA 7027 leaves 23 h 05 after LA 2216 arrives on the timetable: more than half a day, so not a connection we count.