Added actual rate calculation to getrate