BA 505 then BA 410 at Heathrow
Lisbon → London → Valencia
Timetable, London time
15:50BA 505 from Lisbon at the gate
15:00BA 410 to Valencia leaves the gate
23 h 10 apart on the timetable, overnight
BA 410 leaves 23 h 10 after BA 505 arrives on the timetable: more than half a day, so not a connection we count.