work duration calculations