working if number of days less than 1
changes made and working now for the above condtion