How to calculate producer surplus from a table.