rate calculation structure