[Fix #251] Correct computaton of weeks