TP 3961 then FR 9441 at Lisbon
Porto → Lisbon → Madrid
Timetable, Lisbon time
13:55TP 3961 from Porto at the gate
13:15FR 9441 to Madrid leaves the gate
23 h 20 apart on the timetable, overnight
FR 9441 leaves 23 h 20 after TP 3961 arrives on the timetable: more than half a day, so not a connection we count.