IB 987 then FR 4096 at Manchester
Madrid → Manchester → Riga
Timetable, Manchester time
13:55IB 987 from Madrid at the gate
10:35FR 4096 to Riga leaves the gate
20 h 40 apart on the timetable, overnight
FR 4096 leaves 20 h 40 after IB 987 arrives on the timetable: more than half a day, so not a connection we count.