Link to home
Start Free TrialLog in
Avatar of sirbounty
sirbountyFlag for United States of America

asked on

Logical arithmetic

More of a general 'math' question, I suppose, but it has to do with mailbox quotas.
I have 4 values for a mailbox quota size:
  -Current total used
 -What level does the user get a warning
 -What level is the user prohibited from sending
 -What level is the user prohibited from receiving.

So, if the user has 750MB total data usage, and their first warning is set to 800MB, they are at 93% utilization.
I need to perform a calculation when the utilization exceeds 85% that would allow me to increase the initial warning to an amount that puts them below 85%, but obviously not 84.xx% - I want to give them a bit of a buffer.

Having trouble getting this working the way I like because it keeps hitting the same users even after they're increased.

What calculation can I use to ensure these are set to 80% utilization, for example?
Avatar of Phillip Burton
Phillip Burton

If the relevant percentage is MyPerCent, then you need to multiply current usage by MyPerCent/.80
Avatar of AndyAinscow
>>So, if the user has 750MB total data usage, and their first warning is set to 800MB, they are at 93% utilization.
I need to perform a calculation when the utilization exceeds 85% that would allow me to increase the initial warning to an amount that puts them below 85%, but obviously not 84.xx% - I want to give them a bit of a buffer.


I'm having trouble understanding that.
The warning seems to be applied (800MB) AFTER they have exceeded their limit (750MB) !
A warning is a warning, you have given them a buffer (of 15% = 100 - 85) so 84.99% is still below their warning level.  Why would you require a buffer to reaching the buffer ?
Avatar of sirbounty

ASKER

If the relevant percentage is MyPerCent, then you need to multiply current usage by MyPerCent/.80

MyPercent being the 85% here?

So, if the usage is 85% of the warning value, I would make the new warning value = (currentusage * 85%)/.80?
ASKER CERTIFIED SOLUTION
Avatar of Phillip Burton
Phillip Burton

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>Having trouble getting this working the way I like because it keeps hitting the same users even after they're increased.

ps.  If all you are talking about is a buffer size then increasing the buffer size (15 ->  20%) will reduce the size the user can utilise before they receive their warning.
That should do it - thanks.