Which combinations of the «Apply Discount On Prices» and «Apply Customer Tax» options are valid?

How to setup the «Apply Customer Tax» option in accordance with the Russian tax law?