IB 1402 then UX 57 at Madrid
Valencia → Madrid → São Paulo
Timetable, Madrid time
01:35IB 1402 from Valencia at the gate
23:55UX 57 to São Paulo leaves the gate
22 h 20 apart on the timetable
UX 57 leaves 22 h 20 after IB 1402 arrives on the timetable: more than half a day, so not a connection we count.