I have the following digitable line:
74893.12004 21627.007186 37931.981056 7 60750000001400
As I've already seen in this question, I found out how to calculate maturity mathematically:
Extract Digitable Line Maturity
I need the JS equivalent, which is to extract the expiration factor (first four characters from the last block, in the example above 6075), and add this number to date 7/10/1997 (date 7 October 1997 is always this, basis of all the standard Febraban tickets), obtaining the expiration in the format dd / mm / yyyy.
Example: For factor 1001 the resulting date must be July 4, 2000.