Fix calibration constant calculation