General Weighted Mean Formula