The obvious bit
Model weight × your real cost per gram. Simple, but only part of the story.
From STL to a fair quote
I made this after one too many “how much for this?” messages. Add the numbers from your slicer and get a price that covers the spool, the printer, your time and the prints that don't make it.
Saved only on this device.
Under the build plate
Model weight × your real cost per gram. Simple, but only part of the story.
Power use and a little of the printer's purchase price for every hour it runs.
Setup time, failed-print risk and a profit margin because your time isn't free.