Calculate offset lazily