Ivermectin expiration date? Shelf Life?

My ivermectin is compounded into capsules so I asked the compounding pharmacist what the shelf life is. He explained to me that the US government requires them to put 6 months on the prescription label but the ivermectin powder they use to create the capsule says 2 years.