Traveling while formula feeding

Has anyone travelled while formula feeding. My son will be almost 5 months when we go on a plane and I was wondering on how you did it. How did you go through customs? Did you already have bottles made? Were you aloud to bring the powder with you? It will be about a 7 hour flight