Calculate bounding box coordinates

Hello dear sirs.

I need a code to calculate bounding box coordinates (topleft and bottomright) when given center and radius of insight circle.

Can you help me please?

what programming language???

What are your efforts so far ???

When you have a center point of the circle with X/Y and a radius R … then increase or decrease the X and Y values about R … but pay attention when you are moving in a geo coordinate system where you are calculating with degrees, latitude and longitude. Values are from -90 to +90 and -180 to +180