implement and calculate tax rate