Calculate the Date
<p>Friends I am getting two inputs from the user</p>

<pre><code>1.InitDate from DatePicker
2.Difference in between two dates (numberOfDates)
</code></pre>

<p>I need to calculate the FinalDate such that</p>

<pre><code>FinalDate=InitDate+numberOfDates
</code></pre>

<p>What I have done till now</p>

<pre><code>private void CalcLastDate(int days) 
        {

long millis=days*24*60*60;

            Calendar c = Calendar.getInstance();

            c.set(settingsFromDate.getYear(), settingsFromDate.getMonth(), settingsFromDate.getDayOfMonth());
            long initDate = c.getTimeInMillis();

            long longFinalDate=initDate+millis;

}
</code></pre>
