FR 3187 then IB 1151 at Madrid
Manchester → Madrid → Porto
Timetable, Madrid time
22:25FR 3187 from Manchester at the gate
15:40IB 1151 to Porto leaves the gate
17 h 15 apart on the timetable, overnight
IB 1151 leaves 17 h 15 after FR 3187 arrives on the timetable: more than half a day, so not a connection we count.