After having tried to use UDF's, I never use them again. I even stopped attempting to do so.
I would create two DATE columns, a FromDate and a TillDate to model a time interval. But then again, I am not C.J. Date. I could do whatever I wanted to do with them, and it would work and keep on working, but it is not a UDF, and as a consequence, a bad and retarded way to do things.