Markdown and discount calculations