Capacitance calculation of chip capacitors