fix calculate percent