Why can't you use map.Bounds directly? This will extend your rectangle outside the map cordon on the right and bottom edges.