UX 16 then IB 267 at Madrid
La Mesa → Madrid → São Paulo
Timetable, Madrid time
01:05UX 16 from La Mesa at the gate
23:55IB 267 to São Paulo leaves the gate
22 h 50 apart on the timetable
IB 267 leaves 22 h 50 after UX 16 arrives on the timetable: more than half a day, so not a connection we count.