input: Write a function to calculate the compound interest based on the given investment amount, rate of interest, and time. The function should return the calculated compound interest.
  
  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.2815625
  assert compoundInterest(2000, 3, 7) == 2462.23696
  assert compoundInterest(500, 2.5, 10) == 640.2864280000006
  assert compoundInterest(1500, 4, 3) == 1687.488
  assert compoundInterest(700, 1.8, 8) == 780.3127200000012
output: def compoundInterest(investment_amount, rate_of_interest, time):
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest