input: Write a function to calculate the compound interest. The function should take the investment amount, rate of interest, and time period in years as input parameters and return the 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 round(compoundInterest(1000, 5, 5), 2) == 1276.28
  assert round(compoundInterest(2000, 3, 7), 2) == 2459.63
  assert round(compoundInterest(500, 7, 10), 2) == 983.58
  assert round(compoundInterest(1500, 4, 3), 2) == 1687.48
  assert round(compoundInterest(3000, 6, 8), 2) == 4875.09
output: def compoundInterest(investment_amount, rate_of_interest, time):
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest