I don't know if any such formula exists. Some people will look at your height/inseam and just call it out and others will measure you all over or put you on a fit bike and measure your power output.
I started by duplicating a frame I liked with minor changes and went from there.