+ function compute the percentage