Assist Riot's Mathematics Department
Average queue time calculation should utilize a moving average. Now, picking the basis for the moving average can be tricky.
https://en.wikipedia.org/wiki/Moving_average
Hopefully that helps you out. I've noticed your "queue time" thing is completely fucking wrong and absurdly hilarious to compare actual time.