calculate average vote