AA 1517 then AA 2442 at Charlotte
Tampa → Charlotte → Buffalo
Timetable, Charlotte time
19:09AA 1517 from Tampa at the gate
13:20AA 2442 to Buffalo leaves the gate
18 h 11 apart on the timetable, overnight
AA 2442 leaves 18 h 11 after AA 1517 arrives on the timetable: more than half a day, so not a connection we count.