Go by the expiration date printed on the package. For most OTC medicines, opening the container doesn't start a shorter countdown — storage is what actually shortens a medicine's life.
Yes — Ibuprofen tablets (Advil, Motrin) carries a printed expiration date and that's the date to go by. Use by the printed expiration date, stored at room temperature and away from moisture. Liquid gel capsules are more sensitive to heat than plain tablets — if they've gone soft or leaky, replace them. Not medical advice — follow the label and ask a pharmacist.
Room temperature 68–77°F (20–25°C), dry, tightly closed in the original bottle. Heat and humidity shorten a medicine's real life faster than the printed date suggests, which is why a bathroom cabinet is the worst place for it.
Throw it out if you notice: Softened, sticky, or stuck-together tablets; Discoloration; An off or chemical smell; Past the printed expiration date. Not medical advice — ask a pharmacist if you're unsure.