input: Write a python function to calculate the time it takes for a ball to reach the ground given the initial velocity and height.
  assert abs(calculate_time_to_reach_ground(20, 10) - 4.08) < 0.01
  assert abs(calculate_time_to_reach_ground(30, 15) - 6.12) < 0.01
  assert abs(calculate_time_to_reach_ground(10, 5) - 2.04) < 0.01
output: def calculate_time_to_reach_ground(initial_velocity, height):
      import math
      g = 9.81  # acceleration due to gravity (m/s^2)
      # Using quadratic formula to solve for t in the equation:
      # 0 = height + initial_velocity * t - 0.5 * g * t^2
      a = -0.5 * g
      b = initial_velocity
      c = height
      
      # calculate the discriminant
      discriminant = b**2 - 4 * a * c
      
      # calculate the two solutions for t
      t1 = (-b + math.sqrt(discriminant)) / (2 * a)
      t2 = (-b - math.sqrt(discriminant)) / (2 * a)
      
      # return the positive time solution
      return max(t1, t2)