Compute length inline