Implement id relative path with simple arithmetic