determining the numbers of day in a month