Set the cost/kg in the filament settings:
After slicing, the estimated cost is listed with Line Type: