My program is giving me the wrong answers. The programs job is the ask the user for the years, months, and days they have been alive. Then calculate how many seconds the user has been alive, and then how many seconds the user has left to live (by subtracting the average 2.5 billion average of seconds. I have already calculated all the if statements and looked over my calculations numerous times, so I don't see what it is not giving me the right output. Thanks for your help.
monthsToDays = years * 365;
monthsToDays = (monthsToDays + months);
monthsToDays = (monthsToDays + days);
secleft = monthsToDays * 24 * 60 * 60;
System.out.println("You have been alive for " + secleft + " seconds");
System.out.println("The average human life is 2,500,000,000 seconds");
System.out.printf("You have " + (averagelife - secleft) + " seconds to live !");