title: Weighted Voting Algorithm/Calculation
body: <p>I am creating a 'duel' app and I am at a dead-end to calculating the results.</p>
  
  <p>Each user either has an upvote or downvote. There is no 1-5 or five-star rating.</p>
  
  <p>For example: If I were displayed 5 times and won 3, I would have 3 'upvotes' and 2 'downvotes'.</p>
  
  <p>If I did straight percentages, any who was displayed 1 time and selected 1 time (100%) would always be the top where as if someone was 9/10 (90%) they would be below the 1/1 but in theory would belong on top.</p>
  
  <p>Anyone have any ideas of how to accomplish this?</p>