calculating & displaying average rate