FR 9840 then U2 3876 at Lisbon
Cologne → Lisbon → Milan
Timetable, Lisbon time
22:40FR 9840 from Cologne at the gate
19:15U2 3876 to Milan leaves the gate
20 h 35 apart on the timetable, overnight
U2 3876 leaves 20 h 35 after FR 9840 arrives on the timetable: more than half a day, so not a connection we count.