H2 5166 then JA 6320 at Lima
Arequipa → Lima → Cajamarca
Timetable, Lima time
23:10H2 5166 from Arequipa at the gate
16:10JA 6320 to Cajamarca leaves the gate
17 h apart on the timetable, overnight
JA 6320 leaves 17 h after H2 5166 arrives on the timetable: more than half a day, so not a connection we count.