The correct relation is
r=2Tcosθhdg
r=Tcosθ2hdg
r=hdg2Tcosθ
r=2Thdgcosθ
The capillary rise
h=2Trdgcosθ