(a) The maximum reasonable fee payable for a legend or non-legend drug dispensed by a pharmacy is determined in accordance with this section. The maximum allowable fee is the lower of the drug's ingredient cost, calculated on a per unit basis, times the number of units dispensed, plus the professional dispensing fee, or the pharmacy's usual and customary charge to the public, based on the date the drug is dispensed.