Are we talking about values for a plain choke-and-capacitor filter? To allow you to draw smooth current from a DC supply?
If so, then use the formulae for reactive impedance. This will get you in the vicinity. The effect is a second order low-pass filter.
XL = 2 Pi f L
XC = 1 / ( 2 Pi f C )
Where X is your load impedance. For this value, calculate supply V divided by Amperes drawn during the switch-On time.
For frequency, take a much slower speed, say 1/10 of your operating frequency. The aim is to inhibit resonant action.
Example, operating frequency 20 kHz, supply 10V, draw is 1A during switch-On.
Solve inductor value in this equation: 10 = 2 Pi 2000 L
Therefore L = 800 uH
Solve capacitor value in this equation: 10 = 1 / ( 2 Pi 2000 C )
Therefore C = 8 uF
The left-hand simulation uses the above values.
The right-hand shows what happens when you use too small a capacitor.