Function for calculating new household weights.