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