Update timeworked function to accept a date range.