Question: What is the generalized formula for denesting
$$\sqrt[3]{A+B\sqrt{C}}$$
Recently I've posted a question about nested radicals in solving the cubic equation. I received a comment about an ingenious method to denest the radical by solving a cubic equation, but, I was still not satisfied. See $\sqrt[3]{\text{something}\pm\sqrt{\text{something}}}$ and the link from the comments Denesting Phi, Denesting Cube Roots.
Trying to solve cubic equations, sometimes I would get something like $\sqrt[3]{-27+6\sqrt{21}}$, which is not easily denested by hand. I had to go and solve another cubic equation. The radical derives from the equation $x^3+x-2=0$. The cubic equation I had to solve for the radical would be more complex than the equation itself. I tried searching the internet for a denesting formula but I couldn't find a definitive one. All I could find was something about Galois theory which is mathematics I don't understand (I'm a 10th grader in Romania).
So, I tried making my own algorithm. Based on the idea from Denesting Phi, Denesting Cube Roots, I might have generalized it to solving a depressed cubic equation, which should be relatively easy and, in lucky cases, immediate. Keep in mind this is not a formula, but a simplification.
See the answer below.