Average variable is commented out

Calculation of the average-variable ($avg) I commented out because this is not the correct way to calculate the average just for work days -> New idea required, maybe ignore the weekend complete