Or better yet.............sit on the bike as if riding and with your left or right leg extend the pedal of either to its lowest position and then adjust seat height to what we all know is just slightly bent knee but not extended.
Do this with a friend so you can stand on the bike while they adjust the seat.
No math needed here.