Added date function to convert start end dates to a number of days