A cylinder 30cm wide and 30cm tall has a volume of 21.2 Litres.
V= pi x r² x h = 3.14 x 0.15² x 0.3 to give you a volume of 0.0212 cubic metres. As there's 1000L in a cubic metre we then multiply by 1000 to get the volume in litres, hence 21.2L or 5.6 US Gallons or 4.66 Imperial (UK) gallons.
Or just use this online calculator if you have the diameter and height in cm. You know, like wot I did
https://www.matthewb.id.au/converter/cylinder-volume-calculator.html
PS. With airpots that may not be accurate as it depends on whether they use "inside or outside gauging", as in whether that is external or internal measurements. With bags it matters not, the walls are so thin there's no effective difference is volume. But with airpots the difference between external and internal measurements is significant, you have a 1cm difference wall "thickness", internal vs external, that 21 L drops by 2L so, obviously, the bigger the difference between the maximum external width/height and the minimum internal width/height means the drop in actual volume can be significant. Be aware of ALL dimensions