If the only case counted is for Employee Illness then change the formula in E2 and down of the Calendar tab so that it reads:
Formula: copy to clipboard
=IF(SUM(D$2:D2)<=40,0,IF(AND(C2="Employee Illness",C2<>C1),1,0))
Let us know if you have any questions.