Weight and Distance Calculation