Calculation and application of percentages