Fixed the code percentage calculator