LA 2317 then JA 7029 at Lima
Piura → Lima → Cusco
Timetable, Lima time
15:15LA 2317 from Piura at the gate
08:00JA 7029 to Cusco leaves the gate
16 h 45 apart on the timetable, overnight
JA 7029 leaves 16 h 45 after LA 2317 arrives on the timetable: more than half a day, so not a connection we count.