# Age in Minutes

• 09-08-2002
harryP
Age in Minutes
Hi, I'm trying to make a program to find my age in minutes. No, this is NOT a homework question, I don't even take programming classes, but I think it'd be sorta interesting to find out how old I am in minutes. I'm stuck, though. Like, what math stuff would I need to do to find out my age? I was thinking of finding out my age in months, which is simple enough. Then maybe find out in days. The problem with that is that every 4 years there are 366 days a year, not 365, so I'd have to include that. Then maybe to hours and then minutes. But how would I go about doing this? Thanks!

Brendan
• 09-08-2002
harryP
Actually never mind I got it. Pretty simple I guess I'm just dumb.

Brendan
• 09-08-2002
RoD
could you post the code here? I am new to c++ and would be very interested to learn from it.
• 09-09-2002
vasanth
in excel there is a function called days360.. Witht his you can find the number of days between 2 dates.. So find it and then convert the number of days into minutes....
• 09-09-2002
BMJ
Age in years: 18
18 x 365.25 days per year = 6574.5 days old
6574.5 x 1440 minutes per day = 9467280 minutes old
• 09-09-2002
Cshot
That will not always give you the exact age in minutes though BMJ :)
• 09-09-2002
BMJ
then add the current time to that
• 09-09-2002
Cshot
That won't work either.

example:
You are born on Jan. 1st during a leap year. One year later based on your formula, you'd be:

1 x 365.25 days old
but in actuality, you'd be 1 x 366 days old...

I've done this problem before so I know the solution :)