It depends. Nonsteroidal anti-inflammatory drugs (NSAIDs) like Motrin (ibuprofen) are typically used for 10 days or less. This is because of potential side effects like stomach ulcers. Opioids like OxyContin (oxycodone) should be taken for the shortest amount of time possible. Addiction is rare when they are used for five days or less. Always follow your doctor's instructions.