Tag invoice discounting formula