private static int calculateTime ( int x ) {
  if ( x == 0 ) {
    return 0 ;
  }
  return 30 + ( ( x - 1 ) / 2 ) * 3 ;
}

private static int calculateTime ( int x ) { if ( x == 0 ) { return 0 ; } return 30 + ( ( x - 1 ) / 2 ) * 3 ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (return_statement (decimal_integer_literal)))) (return_statement (binary_expression left: (decimal_integer_literal) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal))) right: (decimal_integer_literal))))))