Calculates the engine's cost.
1 engine object
the engine to calculate.
2 bool isFree
whether the engine is free. Will return 0 if this is true.
1 number
the cost.