It's better to code in the final value you expect than to do the calculation yourself -- otherwise you're testing that the method works using the same strategy that the method itself is using, which could mask errors in more complex cases. You can use `expect(...).to be_within(...).of(...)` to avoid having to get the decimal places exactly right.