ChatGPT can easily algorithms for you. After 2 additional comments I got a great working LeakyBucket Algorithm in PHP. I realized that you could get this in 1 message but you just have to be specific Looking forward to seeing more from this