determination of production costs