make the centre of the circle 0,0

call the tool radius t, the radius of the actual hole R and the location of the chord is y = -d

the coordinate of the holes are x = +/- (R-t)sin(arccos((d-t)/(R-t))), y = -d+t

How are you programming this, there may be an easier way