Rename `calculate` to `getPath`
Improve docs