Hi Autir,
I don't have formulas; just Ohm's Law, the transistor's datasheet and experience.
Your 2nd circuit won't work because the current gain and base-emitter voltage of any certain transistor is different for each one, and change with temperature changes.
For the 1st transistor circuit, I...