Adjustment to the totalHours count

Calendar.DAY_OF_YEAR is not a zero-based index.