Derivation of capacitor capacitance calculation formula