int overflow for document expiration >30days

Fixed an Integer overflow as the conversion from Millis to Seconds was done AFTER the Long->Int conversion