The EU: Single Transferable Voting
The ballot counter will calculate results of an election using the single transferable voting system.
How does this work?
The counter uses the "Weighted Inclusive Gregory Method" for reallocating surplus votes.
If a candidate has more than the minimum number of votes needed to be elected, a procedure is needed to allocate the surplus votes to other candidates. The quota for election is:
(Number of votes) / (Number of seats + 1) - rounded up to two decimal places.
At each stage of the count, if more than one candidate has surplus votes, the largest surplus will be transfered first. All ties are broken randomly.