fix work hours computation