A Generative Model for Duration-Dependent Score Calibration