Calculation of discounted price