How can I calculate the sparks when I discharging a big capacitor?
You could use an NTC resistor, the same kind used to limit inrush current on power supplies (hint: they're used to limit the charging current to the input caps.)

An NTC will start at a high resistance, then heat up and lower its resistance as it discharges the cap. This is kind of what you want to avoid sparks.