New method for Day class: getWorkDuration