Hi again,
@hogrefe.christian just reminded me that you can actually access error functions in COMBINE. Please see documentation here: CMAQ/POST/combine at main · USEPA/CMAQ · GitHub
So I think you could implement this algorithm in a SpecDef file and have COMBINE process the integrated number for you.
Cheers,
Ben