BA 845 then BA 1484 at Heathrow
Warsaw → London → Glasgow
Timetable, London time
14:40BA 845 from Warsaw at the gate
14:20BA 1484 to Glasgow leaves the gate
23 h 40 apart on the timetable, overnight
BA 1484 leaves 23 h 40 after BA 845 arrives on the timetable: more than half a day, so not a connection we count.