fix stat calculations for first day in month