TP 1014 then FR 5315 at Madrid
Lisbon → Madrid → Rome
Timetable, Madrid time
14:05TP 1014 from Lisbon at the gate
06:55FR 5315 to Rome leaves the gate
16 h 50 apart on the timetable, overnight
FR 5315 leaves 16 h 50 after TP 1014 arrives on the timetable: more than half a day, so not a connection we count.