generating percent of file by calling calculate_percent helper method and passing condition count from json object
created calculate_percent helper method to generating percent of file