EC 7640 then TP 1924 at Lisbon
Madrid → Lisbon → Porto
Timetable, Lisbon time
10:15EC 7640 from Madrid at the gate
10:00TP 1924 to Porto leaves the gate
23 h 45 apart on the timetable, overnight
TP 1924 leaves 23 h 45 after EC 7640 arrives on the timetable: more than half a day, so not a connection we count.