LH 1115 then BA 907 at Frankfurt
Madrid → Frankfurt am Main → London Heathrow
Timetable, Frankfurt am Main time
19:45LH 1115 from Madrid at the gate
19:15BA 907 to London Heathrow leaves the gate
23 h 30 apart on the timetable, overnight
BA 907 leaves 23 h 30 after LH 1115 arrives on the timetable: more than half a day, so not a connection we count.