Is there a question being posed, or is this more of an exposition?
I think a good starting point is to get the seat height and fore/aft position correct, so that you are balanced, and then adjust the stem's length so that your forearms are about 90° from a line drawn through your spine.
This implies that the stem length is going to be dependent to some extent on the reach of your bars, brake hood position, etc.