Appropriate method to calculate remaining licenses on account

I wanted to validate the appropriate way to validate the number of remaining licenses in an account to troubleshoot an issue I am having with the number the formula is returning.

I have been using the following formula:

remainingLicenses = planBaseHosts - planBaseUsage + subAccountSeats

planBaseHosts:

planBaseUsage:

subAccountSeats:

Hey @mkumar05,

Yes, that should be the correct formula. :slight_smile:

Thanks,
Tommy

Thanks! What would it mean if it returns a negative number?

Hey @mkumar05,

Can you share the values that you are using to get the negative number?

That way I can take a look! :slight_smile:

Thanks,
Tommy

Here are the values for a log a couple days ago:
image . Sub account seats is 55.

I have seen the number also hit -1 sometimes when I add in the subaccount seats.

My main issue has been I can’t manually license users in the web portal when I have under 55 licenses available (but users do get a license when the are created via the SSO/SAML process), so I’m wondering if something is wrong with our numbers.

Hey @mkumar05,

Let me investigate this and get back to you. (ZOOM-198963)

I will find out why you are getting a negative number sometimes.

Thanks,
Tommy

I found a -1 example, there were a lot of logs to dig through.

image

image