DL 5223 then JJ 8181 at JFK
Buffalo → New York → São Paulo
Timetable, New York time
12:48DL 5223 from Buffalo at the gate
01:30JJ 8181 to São Paulo leaves the gate
12 h 42 apart on the timetable, overnight
JJ 8181 leaves 12 h 42 after DL 5223 arrives on the timetable: more than half a day, so not a connection we count.