How to calculate selling price with cost and margin (Discount and Rebate included)