input: Write a function to calculate the distance between two points on a two-dimensional plane given their coordinates (x1, y1) and (x2, y2). If the distance is calculated correctly, return the distance as a float. If the input is invalid, return -1.
  
  assert calculate_distance(3, 4, -9, -2)==13.601471
  assert calculate_distance(0, 0, 1, 1)==1.414214
  assert calculate_distance(1, 2, 3, 4)==2.828427
  assert calculate_distance(1, 1, 1, 1)==0.0
  assert calculate_distance(5, 5, 10, 10)==7.071068
output: def calculate_distance(x1, y1, x2, y2):
      try:
          return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
      except:
          return -1