Convenience helper function for getting rates