UA 4042 then UA 3907 at Houston
Richmond → Houston → Washington
Timetable, Houston time
08:45UA 4042 from Richmond at the gate
07:00UA 3907 to Washington leaves the gate
22 h 15 apart on the timetable, overnight
UA 3907 leaves 22 h 15 after UA 4042 arrives on the timetable: more than half a day, so not a connection we count.