A mathematical formula cannot tell you how to "install" sights to hit centre at a given range, whatever your choice of that might be.
It is an easy job to install all ML sights dead level, measured from the centre of the bore to the top flat of the rear sight and top
surface of the front blade. If a bead sight is used, then the centre of the bead is the 'top' measurement.
If installing a bead or sugar loaf sight on the front of the rifle, then the rear sight should be made higher than the front sight, so it
must shoot high and then can be filed to produce centre hits at the intended range.
This is not rocket science.
If the front sight (blade front) is initially made the same height as the rear (above the centre of the bore), it will either shoot centre
at 25 yards, or will shoot a tich low. It is an easy job then to simply file off a bit and re-shoot.
IF and this is a big IF, the gun shoots high with level sights, then the bore is not in the middle of the barrel, or if appearing centered,
it is angling up to centre from below centre to appear that way at the muzzle. Either way, the gun will shoot high. Simply taking some
off the rear sight will remedy this situation.