calculating total scrap weight