input: Write a function to calculate the compound interest given the initial investment amount, rate of interest, and time period. The function should return the computed compound interest value.
  
  def compoundInterest(investment_amount, rate_of_interest, time):
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest
  
  assert compoundInterest(1000, 5, 5) == 1276.2815625000003
  assert compoundInterest(2000, 7, 3) == 2457.1437450100006
  assert compoundInterest(500, 3, 10) == 671.9581874540264
  assert compoundInterest(3000, 4, 8) == 4105.751687265739
output: def compoundInterest(investment_amount, rate_of_interest, time):
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest