What are the recommended sizes for a text box?

If I am making a text box for an online document, how many characters should I leave for things like names and dates?