FR 8717 then FR 4096 at Manchester
Madrid → Manchester → Riga
Timetable, Manchester time
12:40FR 8717 from Madrid at the gate
07:40FR 4096 to Riga leaves the gate
19 h apart on the timetable, overnight
FR 4096 leaves 19 h after FR 8717 arrives on the timetable: more than half a day, so not a connection we count.