trying to find the amount of half hours in between two times
<p>I can't think right now.... i've been trying to figure out how many half hours there are between two variables, which will have the start and end times like so, 1100 and 1430</p>

<p>I started doing the following but realized time doesnt go to 100!</p>

<pre><code>function process_blocks(startTime,endTime){

var blocks = 0;

startTime = +startTime;
endTime = +endTime;

while(startTime &lt; endTime){
startTime = startTime + 30; // add a half hour, which is a block
blocks++;
}
return blocks;

}
</code></pre>
