How do I know how much filament I need to use for a model?

How do I know how much filament I need to use for a model?

After you sliced a model in Panobuilder you will see the weight of your model. On the side of the filament roll you see how many grams that are left.