use working times to get a period duration for absence creation