calculates voting percentages