#29755 Method to calculate progress bar percentage