code: public static double calculateJobCost(long mbMillis, double computeTco, long machineMemory) {
      if ((machineMemory == 0L) || (computeTco == 0.0)) {
        LOG.error("Unable to calculate job cost since machineMemory " + machineMemory
            + " or computeTco " + computeTco + " is 0; returning jobCost as 0");
        return 0.0;
      }
      double jobCost = (mbMillis * computeTco) / (Constants.MILLIS_ONE_DAY * machineMemory);
      return jobCost;
    }
docs: calculates the cost of a job in current units
  jobCost = thisJobMbMillis * computeTco / mbMillisInOneday
  @param mb millis, compute tco, memory of the machine