Calculating the number of weeks