new method to calculate item weight