W9 5776 then IB 986 at Gatwick
Prague → London → Madrid
Timetable, London time
23:55W9 5776 from Prague at the gate
19:40IB 986 to Madrid leaves the gate
19 h 45 apart on the timetable, overnight
IB 986 leaves 19 h 45 after W9 5776 arrives on the timetable: more than half a day, so not a connection we count.