I'm curious Ronnie, does the value returned change during the day? Also, if the same function is called many times during the day does it really get parsed every time. I don't think it does. I think that as long as a function stays cached it will stay parsed. And besides by creating a function you will prevent yourself from coding this logic in multiple places. Which leads to the axiom code once use many. Why keep coding the same logic over and over again when you can leave it in one place? If it is related to other code then create a package otherwise leave it as a stand alone function. Too many times I have heard a programmer say we can't change that because it is hard coded in too many places. If business logic is encapsulated into a set of functions then you can easily change how this value is calculated without changing a lot of code. But don't listen to me. This is alos one of the things that I picked up from Steven Feuestein, you might want to listen to him.
