I'm not sure what exactly you are trying to do, but estimating mass air flow so as to compare it to an actual measured flow has at least two significant obstacles that limit how close you can get. One is that volumetric efficiency can vary quite a bit on some engines and the other is that some mass air flow sensors measure reversion additively and this has to be accounted for in the ECM design.