fix splitIntoWorkablePeriod method
division by 0 verification
Merge remote-tracking branch 'upstream/master'