input: Write a python function to calculate value based on given conditions.
  assert calculate_value(-2) == -8
  assert calculate_value(8) == 24
  assert calculate_value(13) == 26
output: def calculate_value(x):
      if x < 0:
          return x * 4
      elif x <= 10:
          return x * 3
      else:
          return x * 2