The formula for the consumer surplus is: Consumer surplus=1/2*Q*ΔP