A function to return max lateness value for a job array was extracted