input: Write a function to calculate the compound interest based on the investment amount, rate of interest, and time period. 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.28
  assert compoundInterest(2000, 3, 2) == 2121.8
  assert compoundInterest(5000, 4, 3) == 5624.32
  assert compoundInterest(7000, 2.5, 4) == 7715.76
output: def compoundInterest(investment_amount, rate_of_interest, time):
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest