LOTS and LOTS of chemistry and physics.
Calibration, at least for an OEM, is 99.9% exhaust emissions and the rest is performance. Performance as in when does the a/c compressor come on and turn off, driveability, etc. 0-60 type performance is pretty unimportant to the OEMs unless you happen to be working on a performance model. Very tedious and boring actually.