Implement rate calculation