Added weekdays to time function