The AP has called winners in elections for more than 170 years. Here's how it's doneThe AP provides critical election result news by analyzing vote counts for contested races across the U.S.