Scripting: IF Usage more than 5GB Disable....

Im sure someone has done this already, but I couldn’t seem to google the right terminology to find the answer im looking for.

I want to disable internet usage once usage as hit 5GB in a 30 day period. So something like:

if firewall rule = more than 5GB disable ethernet 1

How would I go about creating this script?

Thank you!

maybe kid control feature can be useful to you

https://wiki.mikrotik.com/wiki/Manual:Kid-control