Is there a formula that given one latitude/longitude point and a radius (in kilometers ideally) would give me a square around the center?
A picture is worth some quantity of words:

I have the latitude/longitude value of point A, and I have D in kilometers; how can I get point B and C in latitude/longitude values?

I ended up using what's in this page
For θ I used -45 degrees (in radians) for point B and 135 degrees for point C