use duration instead of end time for jobs.