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