what is the formula to calculate discount — community answers