Grant advancement after 3 minecraft:consume_item triggers

Hey all im trying to add an advancement to my data pack where if you drink a custom potion (it has its own custom data tag) 3 times in 12ish second it grants and advancement, I already have an advancement for just drinking the potion once, but im not sure how to make it so it tracks how long in between consumptions

Continue to help post