public static int calculateSecurityServerCount(int externalsessioncount){
  Float f=(externalsessioncount / (float)2000.00);
  f=(float)Math.ceil(f);
  if (f > 0.0) {
    f++;
  }
  final int i=f.intValue();
  return i;
}

public static int calculateSecurityServerCount ( int externalsessioncount ) { Float f = ( externalsessioncount / ( float ) 2000.00 ) ; f = ( float ) Math . ceil ( f ) ; if ( f > 0.0 ) { f ++ ; } final int i = f . intValue ( ) ; return i ; }
calculate number of security servers
