Here you can find the source of addWorkdays(final Calendar calendar, final int dauer)
public static void addWorkdays(final Calendar calendar, final int dauer)
//package com.java2s; import java.util.Calendar; public class Main { public static void addWorkdays(final Calendar calendar, final int dauer) { int i = dauer; while (i > 0) { calendar.add(Calendar.DATE, 1); final int day = calendar.get(Calendar.DAY_OF_WEEK); if (day != Calendar.SUNDAY && day != Calendar.SATURDAY) { i--;//from w ww.j a v a2 s . co m } } } }