New function which computes the week of the year