This is the formula I have been using:
var COINS_PER_BLOCK_PHASE1 = 8,
BLOCK_PHASE2 = 263708,
COINS_PER_BLOCK_PHASE2 = 4,
BLOCK_PHASE3 = 334000,
COINS_PER_BLOCK_PHASE3 = 1,
...
...
https://coinmarketcap.com/currencies/soilcoin/says 5,702,048 SOIL = Circulating Supply
And I do not know how they arrive at that number, or whether it is wrong or not.
My -wrong- number is
supply = 6,300,326See
http://178.62.133.174:9001/#/chain/Whoever knows more about this, please enlighten us, then I can adapt the code, to come to the right answer.