Optimal Quantity and Deadweight Loss