Calculating Producer Surplus From A Graph