I took the liberty to update Dan’s expression for you. It will count as fast as the text layer is long in the project, so just size the text layer as needed. Also, you’ll want to go to paragraph-right align text.
numDecimals = 0;
commas = true;
dollarSign = false;
beginCount = 0;
endCount = 24698526;
dur = Math.floor(thisLayer.outPoint);
t = time - inPoint;
s = linear (t, 0, dur, beginCount, endCount).toFixed(numDecimals);
prefix = "";
if (s[0] == "-"){
prefix = "-";
s = s.substr(1);
}
if(dollarSign) prefix += "$";
if (commas){
decimals = "";
if (numDecimals > 0){
decimals = s.substr(-(numDecimals + 1));
s = s.substr(0,s.length - (numDecimals + 1));
}
outStr = s.substr(-s.length, (s.length-1)%3 +1);
for (i = Math.floor((s.length-1)/3); i > 0; i--){
outStr += "," + s.substr(-i*3,3);
}
prefix + outStr + decimals + " m";
}else{
prefix + s+ " m";
}
https://technicolorsoftware.hostzi.com/