calibration.cpp:  replace integer divide