Definition of the ad valorem tax are a tax levied on the difference between a commodity's price before taxes and its cost of production .