Java daysPassed method
<p>I have this method in this java program that I am working on for school. The method works fine, but I was wondering if there is way to make it shorter. Any advice would be great.</p>

<pre><code>public int calculateDate(int month, int day, int year, int numOfDays)
{

    if((daysPassed(month,day,year) + numOfDays) &gt; 0 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 32)
    {
        dMonth = 1;
        dDay = daysPassed(month,day,year) + numOfDays;
    } // end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 31 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 61)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 2;
        dDay = daysPassed(month,day,year) + numOfDays - 31;
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 31 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 60)
    {
        dMonth = 2;
        dDay = daysPassed(month,day,year) + numOfDays - 31;
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 60 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 92)) &amp;&amp; isLeapYear(year) == true){
        dMonth = 3;
        dDay = daysPassed(month,day,year) + numOfDays - 31 - 29;
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 59 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 91)
    {
        dMonth = 3;
        dDay = daysPassed(month,day,year) + numOfDays - 31 - 28;
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 91 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 122)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 4;
        dDay = daysPassed(month,day,year) + numOfDays - (2 * 31) - 29;
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 90 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 121)
    {
        dMonth = 4;
        dDay = daysPassed(month,day,year) + numOfDays - (2 * 31) - 28;
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 121 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 153)) &amp;&amp; isLeapYear(year) == true){
        dMonth = 5;
        dDay = daysPassed(month,day,year) + numOfDays - (2 * 31) - 29 - 30;
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 120 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 152)
    {
        dMonth = 5;
        dDay = daysPassed(month,day,year) + numOfDays - (2 * 31) - 28 - 30;
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 152 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 183)) &amp;&amp; isLeapYear(year) == true){
        dMonth = 6;
        dDay = daysPassed(month,day,year) + numOfDays - (3 * 31) - 29 - 30;
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 151 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 182)
    {
        dMonth = 6;
        dDay = daysPassed(month,day,year) + numOfDays - (3 * 31) - 28 - 30;
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 182 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 214)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 7;
        dDay = daysPassed(month,day,year) + numOfDays - (3 * 31) - 29 - (2 * 30);
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 181 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 213)
    {
        dMonth = 7;
        dDay = daysPassed(month,day,year) + numOfDays - (3 * 31) - 28 - (2 * 30);
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 213 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 245)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 8;
        dDay = daysPassed(month,day,year) + numOfDays - (4 * 31) - 29 - (2 * 30);
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 212 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 244)
    {
        dMonth = 8;
        dDay = daysPassed(month,day,year) + numOfDays - (4 * 31) - 28 - (2 * 30);
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 244 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 275)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 9;
        dDay = daysPassed(month,day,year) + numOfDays - (5 * 31) - 29 - (2 * 30);
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 243 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 274)
    {
        dMonth = 9;
        dDay = daysPassed(month,day,year) + numOfDays - (5 * 31) - 28 - (2 * 30);
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 274 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 306)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 10;
        dDay = daysPassed(month,day,year) + numOfDays - (5 * 31) - 29 - (3 * 30);
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 273 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 305)
    {
        dMonth = 10;
        dDay = daysPassed(month,day,year) + numOfDays - (5 * 31) - 28 - (3 * 30);
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 305 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 336)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 11;
        dDay = daysPassed(month,day,year) + numOfDays - (6 * 31) - 29 - (3 * 30);
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 304 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 335)
    {
        dMonth = 11;
        dDay = daysPassed(month,day,year) + numOfDays - (6 * 31) - 28 - (3 * 30);
    }// end of if

    if(((daysPassed(month,day,year) + numOfDays) &gt; 335 &amp;&amp; (daysPassed(month,day,year) + numOfDays &lt; 367)) &amp;&amp; isLeapYear(year) == true)
    {
        dMonth = 12;
        dDay = daysPassed(month,day,year) + numOfDays - (6 * 31) - 29 - (4 * 30);
    }// end of if

    if((daysPassed(month,day,year) + numOfDays) &gt; 334 &amp;&amp; (daysPassed(month,day,year) + numOfDays) &lt; 366)
    {
        dMonth = 12;
        dDay = daysPassed(month,day,year) + numOfDays - (6 * 31) - 28 - (4 * 30);
    }// end of if

    return dDay;
}// end of calulateDateenter code here
</code></pre>