Question: What did the company score for NAT.B08 Soil Health in the Nature Benchmark?
Answer:
0
World Benchmarking Alliance
NAT.B08 Soil Health
2022
Unverified - Added by Steward

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.2, 0.2, 0.2, 0.2, 0.2]
soil_health = [increasing_agrobiodiversity_evidence, agrobiodiversity_evidence, soil_health_targers_reporting, agrobiodiversity_impact, agrobiodiversity_targets_reporting]
redistributed_weights(weights, soil_health)

weights.reduce((weighted_sum, weight, index) -> 
              weighted_sum + weight*score(soil_health[index])
             , 0)
soil_health_targers_reporting
No
agrobiodiversity_targets_reporting
No

Comments