perhaps someone else has run across this issue and can provide some guidance on how to solve it using JavaScript.
Before somebody flag this question, please take a moment to read the problem and give some clue. No code posted because I just need some guidance or example what I have done so far won't work.
The issue is as follows: (For a visual reference, see the photo)
If I have 51 clients, I need to distribute licenses in accordance with the applicable licensing schema in such a manner that the number of tenants increases by 10. For instance:
With 51 as the input number, there are 5 fixed schemas, and licenses must be applied as seen in Use Case 1's illustration.
First ten apply to the "1 to 10" scheme.
Schema "11 to 30" applies to Next 20.
Applying Next 20 to Schema "31 to 50"
and leftover 1 to the next schema "51 to 100".
The simple part is to loop up by 10, however I'm having trouble controlling the numbers to achieve a logic that works for all usage scenarios.
Any help will be appreciated.
