The cost of goods is fairly straightforward in this case. We received it from CompuStat, and it’s equal to the expenses that exist above the total revenue line in the 10-K. That’s total interest expense and total non-interest expense. (I know, I know, but it looks like they’re following the general variable expenses versus fixed expenses, and for banks the fixed costs are huge: salaries, rents, and such.)
We also get the revenues line directly from CompuStat, and it’s less clear to me exactly how they’re getting it. It looks like they’re summing interest and non-interest revenues, but that would be higher than what we’re showing, so they’re adjusting something somewhere.