title: how to display n day as date assuming 1 year equals 360 days in java?
body: <p>here is my code,</p>
  
  <pre><code>      int txtSubsDay = Integer.parseInt(this.textSubDay.getText());
        int txtDay = Integer.parseInt(this.textDay.getText());
        int txtMonth = Integer.parseInt(this.textMonth.getText());
        int txtYear = Integer.parseInt(this.textYear.getText());
        int daysToSubs = txtSubsDay;
  
        int convertedYears = (int)(daysToSubs / 360);
        int convertedMonths = (int)((daysToSubs % 360) / 30);
        int convertedDays = (int)((daysToSubs % 360) % 30);          
  
        Calendar calendar = new GregorianCalendar(txtYear, txtMonth-1, txtDay);
        calendar.add(Calendar.MONTH, -convertedMonths);
        calendar.add(Calendar.DAY_OF_MONTH, -convertedDays);
        calendar.add(Calendar.YEAR, -convertedYears);
        SimpleDateFormat dateFormat = new SimpleDateFormat("dd MM yyyy");
        SimpleDateFormat dayFormat = new SimpleDateFormat("d MMM yyyy");
        String lastDate = dateFormat.format(calendar.getTime());
        String lastDate2 = dayFormat.format(calendar.getTime());
        labelOutput.setText(lastDate);
        labelOutput2.setText(lastDate2);
  </code></pre>
  
  <p>It was what i wanted.////////////////////////////////////////
  it saved my time.</p>