public static int duration(Date start, Date end) {
        if (start.after(end))
            return -1;
        double diff = (double) (end.getTime() - start.getTime()) / MilleSecond;
        return (int) Math.ceil(diff);
    }