how to calculate volume trading