Handles the maximum number of day