'Get Relative Value'

def get_relative_value(self):

    if self.trash:
        return 0
    elif (self.account.owner_id == self.source_id):
        return (- abs(self.value))
    elif (self.account.owner_id == self.target_id):
        return abs(self.value)
    else:
        return 0
