Integer arithmetic calculating TTLs