get_x_y function

FUNCTION TO GET REAL X AND Y WITH FORMULA AND DATA