Formula
score = (x) -> if x == "Yes" 10 else 0 redistributed_weights = (weights, values) -> num_of_weighted_values = weights.length for value, index in values if value == "Not Applicable" num_of_weighted_values -= 1 redistributed_weight_value = weights[index] for weight, i in weights if weight == 0 continue weights[i] = weight + redistributed_weight_value/num_of_weighted_values weights[index] = 0 weights weights = [0.15, 0.15, 0.25, 0.15, 0.15, 0.075, 0.075] plastic_use_and_waste = [reduction_qualitative_evidence, reduction_quantitative_evidence, reduction_targets, plastic_use_reporting, plastic_waste_reporting, reduction_evidence_upstream, reduction_evidence_downstream] redistributed_weights(weights, plastic_use_and_waste) weights.reduce((weighted_sum, weight, index) -> weighted_sum + weight*score(plastic_use_and_waste[index]) , 0)
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
reduction_qualitative_evidence
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
reduction_quantitative_evidence
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
reduction_targets
2022
NAT.B12.ED Plastic Use Reporting
Research lock
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
plastic_use_reporting
2022
NAT.B12.EE Plastic Waste Reporting
Research lock
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
plastic_waste_reporting
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
reduction_evidence_upstream
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
reduction_evidence_downstream
2022