FR 9440 then FR 1768 at Lisbon
Madrid → Lisbon → Valencia
Timetable, Lisbon time
20:25FR 9440 from Madrid at the gate
14:45FR 1768 to Valencia leaves the gate
18 h 20 apart on the timetable, overnight
FR 1768 leaves 18 h 20 after FR 9440 arrives on the timetable: more than half a day, so not a connection we count.