fix bug in calcBiz nested for-loop