Formula
score = (x) -> if x == "Yes" 10 else 0 weights = [0.25, 0.25, 0.25, 0.25] water_n_sanitation = [right_to_water, preventing_risks, requiring_business_partners_to_respect_right, improving_business_partner_practices] weights.reduce((weighted_sum, weight, index) -> weighted_sum + weight*score(water_n_sanitation[index]) , 0)
World Benchmarking Alliance
right_to_water
2022
World Benchmarking Alliance
preventing_risks
2022
World Benchmarking Alliance
requiring_business_partners_to_respect_right
2022
World Benchmarking Alliance
improving_business_partner_practices
2022