def calculate(self, transaction):
        cost_per_share = transaction.price * self.cost
        return cost_per_share, abs(transaction.amount) * cost_per_share
returns a tuple of:
dataset/ETHPy150Open quantopian/zipline/zipline/finance/commission.py/PerDollar.calculate