Combine slicer filament weight, print duration, measured average printer power, labor and other costs. The failure allowance estimates the consumables needed per successful print when a percentage of attempts fail.
The selling price uses a markup on cost, not a profit margin on revenue. Taxes, marketplace fees, shipping, machine depreciation and design time should be included under other cost or added separately when relevant.