FR 5316 then LA 1718 at Madrid
Rome → Madrid → Valencia
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
16:05LA 1718 to Valencia leaves the gatealso AT 5440
16 h 25 apart on the timetable, overnight
LA 1718 leaves 16 h 25 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.