Problem adding 30 days worth of milliseconds to time

Found the source of my hairpulling to be that a comparison between  now and (some time in the future) is actually comparing (now) and (some time in the past)  but dont know what is wrong.

For my application, I want to be saving unixtime milliseconds to a record file that is "now" plus 30 days to set an expiry-date, then in the future, comparing that expiry date to 'now'.

Here is the debugging code and output I have.  What am I overlooking or why are the numbers suddenly rolling backwards?  What is a better way to generate the milliseconds time for (now plus 30 days)   ?   Limited to Compiling in Java 7
                long systime = System.currentTimeMillis();
                long newtagex = systime + (1000*60*60*24*30); 
                Date curdate = new Date(systime);
                Date tagdate = new Date(newtagex);
                System.out.println("Current time   " + systime +"  " + curdate.toGMTString());
                System.out.println("Expiry time    " + newtagex + "  " + tagdate.toGMTString());
                System.out.println("plus 60 seconds" + (systime + 1000*60));
                System.out.println("plus 60 min    " + (systime + 1000*60*60));
                System.out.println("plus 24 hrs    " + (systime + 1000*60*60*24));
                System.out.println("plus 30 day    " + (systime + 1000*60*60*24*30));

Open in new window

[01:10:38 INFO]: Current time   1425363038489  3 Mar 2015 06:10:38 GMT
[01:10:38 INFO]: Expiry time    1423660071193  11 Feb 2015 13:07:51 GMT
[01:10:38 INFO]: plus 60 seconds1425363098489
[01:10:38 INFO]: plus 60 min    1425366638489
[01:10:38 INFO]: plus 24 hrs    1425449438489
[01:10:38 INFO]: plus 30 day    1423660071193

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

System.out.println("plus 30 day    " + (systime + (long)1000*60*60*24*30));

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GPrentice00Author Commented:
HAH, wow, okay.

Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.