Section 227. Discount.--If a return is filed by a licensee and the tax shown to be due thereon less any discount is paid all within the time prescribed, the licensee shall be entitled, as compensation for the expense of collecting and remitting the tax and as a consideration of the prompt payment of the tax, to credit and apply against the tax payable by the licensee a discount of the lesser of:
72 P.S. § 7227