added total cost calculation in callback for volume and costPerUnit entries