need help on calculatePartiesResultPercentage