Modifying the date counting