added a function calcualateTime_stringToNum(timeStr) to help with calculations