Weighted percentage calculator