public static double getTime ( long buildings , double c , double f , double x ) {
  double time = 0 ;
  double rate = 2 ;
  for ( int i = 0 ;
  i < buildings ;
  i ++ ) {
    time += c / rate ;
    rate += f ;
  }
  return time + ( x / rate ) ;
}

public static double getTime ( long buildings , double c , double f , double x ) { double time = 0 ; double rate = 2 ; for ( int i = 0 ; i < buildings ; i ++ ) { time += c / rate ; rate += f ; } return time + ( x / rate ) ; }
(method_declaration (modifiers) type: (floating_point_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))