Calculating check boxes passing a value to calculate a %

What our team would like to do here:
A user chooses if they Have or Need to Develop a skill. Each H chosen passes a 0. Each D chosen passes a 1 and calculates the % total. 0/33/66/100 is possible. Each H and D need a different box name, like Have1 and Develop1 and so on through possibly 300 skill levels.
It seems something along the lines of:
var total = 0;
for (var i=1; i<=1; i++) {
var f = this.getField("Check Box"+i);
if (f.valueAsString=="1") total++;
}
event.value = total;
should be a starting place, but I don't think it's that simple. We don't want to have to use the Pick option in Calculate. Thoughts anyone?
Thanks!
