Validate duration