How many days back does the swab drug test detect prescription pills?

It goes back almost a year