I got surgery Friday & was given 40 500mgseriously vicodin. I was told to take 32 every 4 hours &now I'm almost out. What is the rule for a situation like this?

I can't drive so I wanted to get them today while I was at my daughters doctor by my pharmacy since I have someone taking us