Calculating the cost for 3d-printing