Headtube legnth + headset stack height should get you close. If it ends up just a bit too long, it's easy enough to cut it down a bit to accomodate what the particular headset brand requires in terms of how much treaded tube it could accomodate under its top lock nut, as they are all a little bit different in that area.
Chombi