correctly use start and end dates in assignCache