title: Calculate number of years and days in mintues
body: <p>Here is my code:</p>
  
  <pre><code>public class numberOfYears {
      public static void main(String args[]){
      String minsString = JOptionPane.showInputDialog("Enter numbers of minutes:");
      double mins = Double.parseDouble(minsString);
      //calcuate mins in a year
      double minsOfaYear = 365*24*60;
      double total = mins / minsOfaYear;
      double year = total / 10;
      double day = total / 10;
  
   System.out.println(year+ " years and " + day + " days");
   //result isnt right
  
      }
  }
  </code></pre>
  
  <p>The question is basically asking to enter minutes and the program supposedly to calculate it to years and days.. for instance, if I enter 1000000000 minutes it should give a result of 1902 years and 214 days.. but I am not getting the correct result. Can someone point out the problem for me please? Thank you! </p>