static int calculateExpiry(int offset) { return DateTime.now().toUtc().millisecondsSinceEpoch ~/ 1000 + offset; }