adding final client-facing TTL calculation