Construct a function in Python to calculate interest rate of a given loan amount
def calculate_interest_rate(principal, rate, period):
  return principal * (rate / 100) * period
  
calculate_interest_rate(2000, 4.5, 5) #900