It's not possible to calculate it because the user might be using a different font, a different size, you get the idea.