This is a design decision. Passing it as a parameter will keep that passed value around for the life of that function. Storing it as an attribute on the object will keep it around for the life of the instance - that is likely to be much longer.
The question you should ask yourself is does this value help describe the instance or is it something the instance owns? - if either of these things are true, then store it.
If it's just something used to compute a value (which is what it sounds like) then there is no reason to store it. Storing it implies you want to use it later.
If you are unsure, err on the side of passing the value to the function. This reduces the chance for error (calling the function when the value isn't set on the class), and it reduces the amount of memory being used.