I have a lens (magnifying glass) and I want to calculate the radius of the curvatures on its sides. The lens in question
diameter of the lens = 6 cm
thickness at center = 7 mm
thickness at edge = 3mm

If we were to simplify it

How can I calculate the radius? You don't have to work with these values if you want to show an example calculation, but I'd appreciate if you did.
Refer to this diagram:
We have $(r-h)^2+x^2=r^2$. Expanding this we get $$ r^2-2hr+h^2+x^2=r^2 $$ and after subtracting $r^2$ from both sides and rearranging $$ r=\frac{h^2+x^2}{2h} $$ Note that $x$ is only half the length of the chord.
With your specific figures being $h=2mm$ and $x=30mm$ you should get $r=226mm$ corresponding to $r=22.6cm$. The following diagram supports this: