Key Points:

The US election is almost over. After an excruciatingly long campaign, which pit two of the most reviled candidates in America's political history against each other, we're hours away from knowing who will become the next president. READ MORE: Check our live updates Here's everything you need to know for election day, on Wednesday NZ time. WHEN THE POLLS CLOSE (NZDT) 1pm Florida, Georgia, Vermont, Indiana, Kentucky, South Carolina, New Hampshire, Virginia 1.30pm North Carolina, Ohio, West Virginia 2pm Connecticut, Delaware, Washington D.C., Maine, Maryland, Massachusetts, Michigan, New Jersey, Pennsylvania, Rhode Island, Tennessee, Alabama, Illinois, Kansas, Mississippi, Missouri, Oklahoma, Texas 2.30pm Arkansas 3pm New York, Louisiana, Minnesota, Nebraska, Wisconsin, Colorado, New Mexico, Wyoming, North Dakota, South Dakota 4pm Arizona, Iowa, Montana, Utah, Nevada 6pm California, Washington, Oregon, Idaho, Hawaii 7pm Alaska WHEN WILL WE KNOW WHO'S WON? That's difficult to say for sure. There are a few scenarios: • If the result hinges on a razor-close margin in one state, it could get very messy - recall the 2000 election between George W. Bush and Al Gore, which ended up being decided in the Supreme Court more than a month after polling day; • If the election isn't too close, a winner could conceivably be declared shortly after 3pm NZ time, when polls close in most of the western states; • If it's a landslide, that will become obvious fairly early, as one candidate sweeps the key swing states. In this scenario, we could predict a winner by about 3.30pm NZ time - though it would not become official until the less competitive western states actually declare their results later in the afternoon. HOW DOES THE ELECTION WORK? Technically, none of the millions of Americans at the polls will be voting directly for a presidential candidate. Their votes are actually used to choose a group of "electors", who then pick the next president on their behalf. You've probably seen this map once or twice before. It shows all 50 American states, along with the number of electoral votes up for grabs in each. These electoral votes - one for each elector - are the key to the election. There are 538 of them in total, divided between the states according to their population. For example California, a large state, has 55 electoral votes, while sparsely-populated Idaho has just four. On election day, whoever wins the popular vote in any given state claims all of that state's electoral votes - and the first candidate to 270 electoral votes is declared president-elect. That's the finish line.