def calculate_compound(self, periods):
    new_principal = (self.principal * ((1 + (self.rate / self.frequency)) ** periods))
    return new_principal
def calculate_compound(self, periods):
    new_principal = (self.principal * ((1 + (self.rate / self.frequency)) ** periods))
    return new_principal