Hi Dennish,
That’s not really a simple question. I’m sure there’s a formula. Or rather many formulas.
The issue is that you are able to control both font size and font face/type - which all have different width per letter.
So I’ll say there is nothing else to do than a trial and error.