input: Write a function to calculate the compound interest given the investment amount, rate of interest, and time period. Return the calculated compound interest as the output.
  Input: 
  investment_amount = 1000, time = 5, rate_of_interest = 5
  
  assert compound_interest(1000, 5, 5) == 1276.28
  assert compound_interest(2000, 3, 10) == 2687.83
output: def compound_interest(investment_amount, time, rate_of_interest):
      return round(investment_amount * (1 + rate_of_interest / 100) ** time, 2)