FR 9840 then TP 1932 at Lisbon
Cologne → Lisbon → Porto
Timetable, Lisbon time
22:40FR 9840 from Cologne at the gate
17:00TP 1932 to Porto leaves the gate
18 h 20 apart on the timetable, overnight
TP 1932 leaves 18 h 20 after FR 9840 arrives on the timetable: more than half a day, so not a connection we count.