Make rounded buttons responsive?

I´m creating a calculator app with rounded buttons and I want to know what is the best way to make it responsive to all screen sizes.

Already readed some other topics talking about using percentages but I don´t think this is the best solution in this case, cause percentages will distortion the roundness with different screen sizes.

Other option is use fixed px size, and change it depending the screen width and height?

Or there is a mathematical calculation to adjust it automatically?

may be you can try with height and width with equal percent and shape as oval.

sp automatically will turn to round

this not work cause width and height of the screens are different so it´s not the same 10% of the height that of the width

This could be a decent solution? I made Height 10% for all the buttons, and in the blocks I´m putting the Width as this formula: