BA 971 then IB 724 at Heathrow
Hamburg → London → Madrid
Timetable, London time
06:55BA 971 from Hamburg at the gate
19:05IB 724 to Madrid leaves the gate
12 h 10 apart on the timetable
IB 724 leaves 12 h 10 after BA 971 arrives on the timetable: more than half a day, so not a connection we count.