Added SQL Function to calculate workdays between two dates from ID parameter