In a weighted average each value counts as many times as its weight, so divide the weighted total by the total weight, not by the number of values.
Dividing by the number of items instead of the total of the weights
Σ(value × weight) ÷ Σ(weights); the answer must lie between the smallest and largest value.