calculate the substitutions percentage