<human>:  I have a question about microeconomic theory. How do you calculate the deadweight loss of a market?
<bot>: The deadweight loss of a market is the difference between the socially optimal quantity and the quantity actually produced. To calculate the deadweight loss of a market, you need to know the socially optimal quantity and the quantity actually produced. The socially optimal quantity is the quantity that would be produced if everyone were to maximize their utility. The quantity actually produced is the quantity that is actually produced.