change makeDocDateCnt func's rule