Design of single sampling plan by close-form equations