changed logic to take hours between quarter end date and filing deadline, and reduced to a single for loop