BA 985 then IB 724 at Heathrow
Berlin → London → Madrid
Timetable, London time
19:30BA 985 from Berlin at the gate
19:05IB 724 to Madrid leaves the gate
23 h 35 apart on the timetable, overnight
IB 724 leaves 23 h 35 after BA 985 arrives on the timetable: more than half a day, so not a connection we count.