calculate rates