If you always show this why don't you just add an expression column to the database table and then you won't ever need anything this convoluted?