Refactor closedPerDay method.