some population and voting calculations