How should I take X per day as needed medicine?

I had wisdom tooth removal recently and some of my medicine says X per day as needed, does that mean I should only take it every X hours of I need it, or every X hours, with additional doses of symptoms return before then?
3 answers 3