BA 817 then BA 247 at Heathrow
Copenhagen → London → São Paulo
Timetable, London time
21:35BA 817 from Copenhagen at the gate
21:15BA 247 to São Paulo leaves the gate
23 h 40 apart on the timetable, overnight
BA 247 leaves 23 h 40 after BA 817 arrives on the timetable: more than half a day, so not a connection we count.