Adding cm to XY coordinates

I am using a GPS sensor to get my xy coordinates and its working fine, but I want to take inputs from an ultrasonic sensor and know the coordinates of the nearest object.

What I need is the formula on how to add cm to x or y coordinates.

Thank you in advance.

What are you trying to do? GPS accuracy tends to be somewhere between five and fifteen meters. In consequence, trying to use it to map in centimeters is unlikely to be feasible.

For an interesting learning experience, set up your GPS where it has a clear view of the sky, and record the coordinates for a few hours (just save one position every 20 minutes or so). Then observe how its "location" wanders around.