changed hard number to variable in returnDates