How accurate is the cost estimate?
The solid volume comes from the mesh geometry, then material weight is calculated by multiplying that volume by density and infill. Real slicer results vary with wall count, top and bottom layers, and travel moves, so treat the number as a planning estimate.