Modify stats code to fix weekend bug where the weekend contained 9 days ...

...instead of 2 days