Work out what a print really costs: filament used, electricity, and an optional failure allowance. Slicer gives you the grams; this gives you the money.
Material cost = grams used ÷ 1000 × spool price. Electricity = printer wattage ÷ 1000 × hours × your rate. The failure allowance spreads the cost of the occasional failed print across the good ones. Amounts are in whatever currency you enter. Wear parts (nozzles, sheets) and labour are extra.
Filament cost is the grams your slicer reports divided by 1000, times the spool price per kg. Electricity is the printer's average wattage times the print hours times your kWh rate. 100 g on a 25-per-kg spool plus 5 hours at 150 W and 0.30 per kWh comes to about 2.73.
Average draw, not peak. A typical bed-slinger averages 100-180 W once warmed up (more with a heated chamber or large bed). If you want it exact, a cheap plug-in power meter over one full print gives you the true kWh.
Some prints fail and that filament and power is spent anyway. Adding 5-15% spreads those losses across successful prints, which is essential if you price prints for other people.