Calculation of capacitance of cylindrical capacitor