code: protected int handleComputeMonthStart(int year, int month, boolean useMonth) {
  
         //month is 0 based; converting it to 1-based 
         int imonth;
         
         // If the month is out of range, adjust it into range, and adjust the extended year accordingly
         if (month < 0 || month > 11) {
             year += month / 12;
             month %= 12;
         }
         
         imonth = month + 1;  
         
         double jd = IndianToJD(year ,imonth, 1);
         
         return (int)jd;
      }
docs: {@inheritDoc}