refs 4335 calculate monthly/daily statistics each departments