convert expiry date to milliseconds