quantity and total weight calc