added discount tax rate calculation