Here you can find the source of getEndDate(Date startDate)
public static Date getEndDate(Date startDate)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date getEndDate(Date startDate) { Calendar calendar = Calendar.getInstance(); calendar.clear();// w ww . j a va 2 s . com calendar.setTime(startDate); calendar.add(Calendar.DAY_OF_YEAR, 16 * 7 - 3); return calendar.getTime(); } }