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.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1] ecosystem_conversion = [commitment, evidence, time_bound_targets, high_risk_commodities, sourcing_disclosure, coversion_free_supply_chain, minimization_commitment, minimization_evidence, minimization_system_disclosure, minimization_targets_disclosure] redistributed_weights(weights, ecosystem_conversion) weights.reduce((weighted_sum, weight, index) -> weighted_sum + weight*score(ecosystem_conversion[index]) , 0)
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
commitment
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
evidence
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
time_bound_targets
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
high_risk_commodities
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
sourcing_disclosure
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
coversion_free_supply_chain
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
minimization_commitment
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
minimization_evidence
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
minimization_system_disclosure
2022
![World Benchmarking Alliance+Image](https://dq06ugkuram52.cloudfront.net/files/8080275/47886609-icon.jpeg)
World Benchmarking Alliance
Netherlands
minimization_targets_disclosure
2022