Convert expiration to time untile expire for batch, query, and scan