FR 3187 then IB 1401 at Madrid
Manchester → Madrid → Valencia
Timetable, Madrid time
12:25FR 3187 from Manchester at the gate
11:30IB 1401 to Valencia leaves the gate
23 h 05 apart on the timetable, overnight
IB 1401 leaves 23 h 05 after FR 3187 arrives on the timetable: more than half a day, so not a connection we count.