title: How to convert minutes to percentage?
body: <p>Im trying to find out a percentage for a progress bar based on the max minutes given and how many minutes they have been waiting. For example, user says they will wait for 45 minutes, but it ended up being 2 hours. How can I convert that into a percentage?</p>
  
  <p>In this case I thought this would work:</p>
  
  <pre><code>minutes waited / max minutes * 100
  </code></pre>
  
  <p>But in this case minutes waited is 120 divided by 45 then times hundred gives me 267, rounded it. Would I need an additional check to see if over 100 then just use 100% as the progress bar number?</p>