We can get the current evolution factor, and we can get the total game time, and we can (let,s just say for now).... ignore how many enemies bases have been destroyed. (assume zero for my purposes). So this function would be:
pollution_produced = f(time_played, current_evolution_level)
The tricky part is that on each tick the formula used by the game to increment evolution uses (1-current_evolution) as a variable. So it's some kind of exponential decay formula I'd guess.....
Alternatively, if anyone knows of an api call that can just tell me total pollution produced, that'd work too.
