fixed weeknum calculation