Refactoring in ScheduleBlock class (extracting helper functions to reduce
length of computeRunDimensions function)