input: Write a function to calculate the compound interest given the principal amount, rate of interest, and time period. The function should 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 compoundInterest(1000, 5, 5) == 1276.28
  assert compoundInterest(2000, 5, 3) == 2315.25
  assert compoundInterest(3000, 6, 4) == 3787.43
  assert compoundInterest(5000, 7, 2) == 5745.32
  assert compoundInterest(10000, 8, 1) == 10800.0
output: def compoundInterest(investment_amount, rate_of_interest, time):
      compound_interest = investment_amount * (pow((1 + rate_of_interest / 100), time))
      return compound_interest