BA 777 then BA 115 at Heathrow
Stockholm → London → New York JFK
Timetable, London time
15:10BA 777 from Stockholm at the gate
14:15BA 115 to New York JFK leaves the gate
23 h 05 apart on the timetable, overnight
BA 115 leaves 23 h 05 after BA 777 arrives on the timetable: more than half a day, so not a connection we count.