It's actually a relatively easy math problem. One knows the pitch and height of the seat.
All then one needs is where the pitch begins to complete the triangle and calculate each point.
Then determine the lost leg room which will vary the higher one goes on the seat.