Cost cal­cu­la­tion