Expiration dates show how long the maker tested the drug’s stability under extreme temperatures, humidity and light.