New function checkDays