private static void dateAuPlutTot(Tache t){
        ArrayList<Tache> dependances = t.getDependances();
        Tache max = dependances.get(0);
        double tmpMax = max.getDatePlusTot();
        
        for(Tache dependence : dependances){
            if(dependence.getDatePlusTard() == -1){
                dateAuPlutTot(dependence);
            }
        }
        
        for(Tache dependence : dependances){
            double tmp = dependence.getDatePlusTot();
            if(tmp > tmpMax){
                tmpMax = tmp;
            }
        }
        t.setDatePlusTot(tmpMax+t.getDuree());
    }