New Weight (Wnew) Calculation Function