IB 548 then FR 1062 at Madrid
Porto → Madrid → Warsaw Modlin
Timetable, Madrid time
18:55IB 548 from Porto at the gate
13:20FR 1062 to Warsaw Modlin leaves the gate
18 h 25 apart on the timetable, overnight
FR 1062 leaves 18 h 25 after IB 548 arrives on the timetable: more than half a day, so not a connection we count.