max and min duration