Without going into the justification of Cardano's method you should just be able to take the Cardano solution and substitute in your coefficients.

For example if you have

Then let

Then the roots are given by

See for example the Wikipedia page for the Cubic Equation.