IB 1402 then IB 267 at Madrid
Athens → Madrid → São Paulo
Timetable, Madrid time
02:45IB 1402 from Athens at the gate
23:55IB 267 to São Paulo leaves the gate
21 h 10 apart on the timetable
IB 267 leaves 21 h 10 after IB 1402 arrives on the timetable: more than half a day, so not a connection we count.