Mathematics of voting percentage