The logic used to calculate the inflated numbers is as follows:
- Subtract the Current Number (NRIV-NRLEVEL) value from the To Number (NRIV-TONUMBER) value to determine the remaining amount of numbers within the allowed range
- Multiply the calculated value from the previous step by the percentage entered by the user on the input screen; this value is rounded up to the next integer as needed
- Add the calculated value from the previous step to the Current Number (NRIV-NRLEVEL) value thereby resulting in the inflated number
Here is a hypothetical example:
- The 'Current Number' (what has been consumed) for a range is 50,000
- The 'To Number' (end range) is defined as 1,000,000
- This means the difference - the remaining/unused number - is calculated as 950,000
- The user executes the utility using a 10% buffer; 10% of 950,000 is 95,000
- 95,000 is added on to the current number of 50,000 so that the new (buffered) number is 145,000