H2 5563 then JA 7037 at Lima
São Paulo → Lima → Cusco
Timetable, Lima time
09:15H2 5563 from São Paulo at the gate
09:00JA 7037 to Cusco leaves the gate
23 h 45 apart on the timetable, overnight
JA 7037 leaves 23 h 45 after H2 5563 arrives on the timetable: more than half a day, so not a connection we count.