Calculating progress
<p>I am trying to write a basic progress bar with jQuery. I got al the parts that will display the progress in percentages, just need to debug my math.</p>

<p>So, if I start with 130 questions, every time the question is answered I need to recalculate and show the progress.</p>

<p>So here's what I do</p>

<pre><code>var questID // is current question ID, from 1 to 130

var startCount = 130;
var currentCount = startCount - questID;
var progress = Math.floor(currentCount / startCount * 100);
$("#progressBar").width(progress);
</code></pre>

<p>I think I get something backwards as when I test I get 99% after the first question... probably need more caffeine.</p>
