I'm trying to subtract the first day of class (17Feb13 day#47) from the current day (24Feb13 day#55) The command date +%j yields 055, instead of 55 so the math errors...
todayIn=$(date +%j)................= 055
firstDay=(47)..........................= 47
myVal=$(todayIn-firstDay)....= error (expecting 8)