[Issue #8] Multiplying by total for weighted sums