Fix number of days check