Yes you're right put (or calculate) the value in the controller is better.