Calculates the value rate for each key