[ Write a function to calculate compound interest, given p, r, t ]
def comp_int(p, r, t):
amount = p * (1 + (r/100))**t
interest = amount - p
return interest
def comp_int(p, r, t):
amount = p * (1 + (r/100))**t
interest = amount - p
return interest