Weight Calculation of a Workpiece