public static int calculateConnectionServerCount(int vmcount){
  Float f=(vmcount / (float)2000.00);
  f=(float)Math.ceil(f);
  if (f >= 5) {
    f++;
    f++;
  }
 else {
    f++;
  }
  final int i=f.intValue();
  return i;
}

public static int calculateConnectionServerCount ( int vmcount ) { Float f = ( vmcount / ( float ) 2000.00 ) ; f = ( float ) Math . ceil ( f ) ; if ( f >= 5 ) { f ++ ; f ++ ; } else { f ++ ; } final int i = f . intValue ( ) ; return i ; }
calculate number of connection servers
