BA 371 then BA 233 at Heathrow
Toulouse → London → San José (Costa Rica)
Timetable, London time
12:05BA 371 from Toulouse at the gate
11:10BA 233 to San José (Costa Rica) leaves the gate
23 h 05 apart on the timetable, overnight
BA 233 leaves 23 h 05 after BA 371 arrives on the timetable: more than half a day, so not a connection we count.