I find a web site that will do the calculating for me. Ask Mr Google, or your favorite search engine, to find a web site for ...volume of a cylinder.... and the rest is history.Oh yeah. I guess I knew that. I guess you'll need a different way to determine the pot size.
Then, measuring the height of the pot and the diameter at the top should work with a cloth pot since they tend have very straight up and down sides. Plug the numbers in where the instructions say and bingo, the volume. A decent web site will let the user change inches to millimeter for the measurements and from liters to gallons for volume.
For plastic pots which tend to have a taper either measure the diameter half way up or just measure like it is a cloth pot and realize that the number of gallons will be a tad larger than the actual volume.
Only thing to watch for is if the website wants the measurement across the top to be either the diameter or the radius (which is half way across or from the center to the edge).