I found a piece of code on web. It calculates the Minimum bounding rectangle by a given lat/lon point and a distance.
private static void GetlatLon(double LA
I assume 6356725 has something to do with the radius of the earth. Check out this answer, and also take a look at the Haversine Formula.