VBScript, Javascript for JSON from SQL Server

Sample net capacity SQL

A handy way of calculating based on a transaction file.