code to measure release rate accuracy