Sample net capacity SQL

A handy way of calculating based on a transaction file.