Find an algorithm to extract a value from a number

Job ID: 37647397

Budget: $30 – $250 USD

Hello
I prepared a table of numbers and the result
find the formula that extracts the result from that number
ex:
20638691452760703255

should extract :
30