H2 5166 then IB 126 at Lima
Arequipa → Lima → Madrid
Timetable, Lima time
23:10H2 5166 from Arequipa at the gate
21:05IB 126 to Madrid leaves the gate
21 h 55 apart on the timetable, overnight
IB 126 leaves 21 h 55 after H2 5166 arrives on the timetable: more than half a day, so not a connection we count.