Week of year user defined function.