Oh almost everything I need. But I don't know how to install it can you give a few suggestions or reference tutorials.JohnS_3CX is correct, there is not a built-in way of doing this.
However, it is possible using the 3CX Call Control API to write a service that counts all outbound calls made by and extension and automatically disable the extension's ability to make more external calls when their limit is reached. Then, at midnight, the service could reactivate the extensions ability to make external calls. Essentially turning off/on the extension setting below.
View attachment 19137
Founded in 2005, when VoIP was an emerging technology, 3CX has gone on to establish itself as a global leader in business communications.