The calculator to calculate the hydraulic diameter of rectangular duct or tube.
dh = 4 a b / (2 (a + b)) = 2 a b / (a + b)
where b = height/width of the duct (m, ft), a = width/height of the duct (m, ft).