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