It’s easy to declare the winner of an election when one candidate has a huge lead. But when the vote is close, it can take time to determine a winnerVotes cast at polling places are quickly counted.
The process is much slower for mail-in ballots.It takes time:
USA VOTES - GFX EXPLAINER - ELECTION RESULTS DELAY