A Weighting Formula