fix splitIntoWorkablePeriod method
division by 0 verification