The following example illustrates the efficiency gap calculation. There are two parties, A and B. According to the original paper, wasted votes for the winner (say A) are those "beyond the 50 per-cent threshold needed" i.e., beyond 50% plus one or A-((A+B)/2+1) or more simply (A-B)/2-1, if A-B is even, like here, otherwise use int((A-B)/2). There are 500 voters divided into 5 districts with 100 voters each. In the recent election, Party A had about 45% of the votes but won 4 of the 5 districts, as follows: