private long calculateMillisFor(MPPOrderNode node,long commonBase){
  final BigDecimal qty=node.getQtyToDeliver();
  long totalDuration=+node.getQueuingTime() + node.getSetupTimeRequired() + node.getMovingTime()+ node.getWaitingTime();
  final BigDecimal workingTime=routingService.estimateWorkingTime(node,qty);
  totalDuration+=workingTime.doubleValue();
  return (long)(totalDuration * commonBase * 1000);
}

private long calculateMillisFor ( MPPOrderNode node , long commonBase ) { final BigDecimal qty = node . getQtyToDeliver ( ) ; long totalDuration = + node . getQueuingTime ( ) + node . getSetupTimeRequired ( ) + node . getMovingTime ( ) + node . getWaitingTime ( ) ; final BigDecimal workingTime = routingService . estimateWorkingTime ( node , qty ) ; totalDuration += workingTime . doubleValue ( ) ; return ( long ) ( totalDuration * commonBase * 1000 ) ; }
calculate how many millis take to complete given qty on given node ( operation ) .
