small correction :

dayOfWeek != 6 && dayOfWeek != 7


This will correctly calculate according to your condition.