When will the US election end?

Americans were watching anxiously as results were called across the US but election officials warn that it could take days, or even weeks, before it is clear whether Donald Trump or Joe Biden is the victor