Stack Question for Stems?

I’m trying to determine the effective stack of both my stem and aerobar in order to determine my “ideal” frame. I’m sure this has been discussed somewhere, however I was not able to find a quick answer to the following question:

For a 110mm stem @ 86* with a 35mm clamp area what is the effective stack for the stem? I’ve read the information regarding angled stack on the “Stack & Reach” tables, but how do you account for the stem angle?

Thanks

Clamp height 35
Length 110
Angle -4
Head tube angle 73
Stack 41.5
Reach 102.1
.

Thanks! Assuming this is a simple trig calc…what is the equation?

Stack = Length*SIN(radians(angle+(90-HTA)))+(clamp/2)*SIN(RADIANS(HTA))

Reach= Length*COS(radians(angle+(90-HTA)))-(Clamp/2)*COS(RADIANS(HTA))

Note that the angle needs to be expressed the way I have - as a difference from 0/90.