4000 characters are allowed in the Formula field. If you inspect the field element, or view the source of the page - for this or any field - you’ll be able to see the limits. Here it is for the formula field - onblur="this.isvalid=validate_textfield_maxlen(this,4000,false,false);return this.isvalid;"