• To be honest, that table doesn't do enough for you to waste your time using it.  You should probably create an inline table-valued function to completely replace that table.   All the different date calculations can take place within the function, and the parameter to the function could either be the key you use currently or the other value in that table.   The internals of the function could handle either method.

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)