For quick estimates in my head, I think of a 6" cube as being a gallon. It's pretty close and since many tank side lengths are multiples of 6", easy to use. A 29 is 30x12x18 inches, or 5x2x3 6 inches, so is approximately 5x2x3 = 30 gallons.
Furthermore, if you can find some convenient measurement on your body - like the distance from the tip of your index finger to the tip of your outstretched thumb - that is about this 6", you can quickly estimate the volume of an unmarked aquarium.