BA 457 then BA 1448 at Heathrow
Madrid → London → Edinburgh
Timetable, London time
12:05BA 457 from Madrid at the gate
11:55BA 1448 to Edinburgh leaves the gate
23 h 50 apart on the timetable, overnight
BA 1448 leaves 23 h 50 after BA 457 arrives on the timetable: more than half a day, so not a connection we count.