I had a similar problem. I just ended up calculating the front sight height correction this way.
I first measured the front sight height above the muzzle outside diameter and recorded it on a notepad.
After shooting at twenty five yards I noted the height the group center was from the center of the bull and recorded it in my notepad.
I measured the distance from the rear sight to the front sight, recording it.
I drew two similar right triangles.
The first represented the sight radius (adjacent side,) and the side opposite (x.) The x represents the unknown sight correction in decimal inches, or if you prefer, decimal feet. Currently unknown either way.
So you got your known sight radius in decimal feet or decimal inches, maybe arshins if you are a retro geek.
Drew another triangle. This one had the distance from muzzle to target (units of your choice) this is the adjacent side of the right triangle. The side opposite is the distance measurement from the center of your group to the centre of the bull. On the big triangle you have two knowns.
All you do now is make up a simple equation.
(Sight radius) is to (x)
And
(Distance to target) is to (vertical distance from group centre to centre of bull)
Isolate the unknown variable.
( distance to target x vertical distance from the bull)÷(sight radius) =x
This works for shooting under or over. The x value in your case is how much taller your front sight needs to be. I had to subtract as my front sight was too high.
What I described is exactly what everyone else said. No trigonimetry required although you could do it that way using the law of sines and other black magic, if you wanted to check your work.
Oops necro thread sorry. Maybe someone else is having the same problem.