You need to create a code stage. I use the following, tweaked to my needs:
Dim dfi As DateTimeFormatInfo = DateTimeFormatInfo.CurrentInfo
Dim cal As Calendar = dfi.Calendar
Result = cal.GetWeekOfYear(d, 2, 1)
¨d¨ it´s just a DateTime input parameter that you have to send to this page...