# Anybody good with math? QUESTION

**URL:** https://forum.kirupa.com/t/anybody-good-with-math-question/120080
**Category:** Uncategorized
**Created:** [August 20, 2004, 1:30pm UTC](https://forum.kirupa.com/t/anybody-good-with-math-question/120080 "2004-08-20T13:30:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![msandford](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@msandford](https://forum.kirupa.com/u/msandford)
#### Post date: [August 20, 2004, 1:30pm UTC](https://forum.kirupa.com/t/anybody-good-with-math-question/120080/1 "2004-08-20T13:30:32Z")

</div>

How can I, using getdate, getmonth etc., arrive at the number of the week within the year (1-52)? :h:

---

<div class="post-metadata">

### Author: ![deQue](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@deQue](https://forum.kirupa.com/u/deQue)
#### Post date: [August 21, 2004, 12:40am UTC](https://forum.kirupa.com/t/anybody-good-with-math-question/120080/2 "2004-08-21T00:40:32Z")

</div>

Well, since the months numbers start from 0 (zero), you can multiply the month number by 4, and devide the day number by 7:

March 13 would be 10th week:  
March = 2  
2\*4=8  
13/7=1.85  
Since we’re trying to get the week we’re at, 1.85 means we’re over the first week, but still in the second, cause we’re lower than 2. So 8 + 2 = 10th week.

Is that clear enough? Let me know.
