Question: how is inrush current calculated?
Answer: If there is a voltage difference across the switch the magnitude and frequency of this inrush current can be calculated. The magnitude and frequency of this charging current depends upon the total capacitance and inductance of the circuit as well as magnitude of the applied voltage.