# Anybody good with math? QUESTION

**URL:** https://forum.kirupa.com/t/anybody-good-with-math-question/61670
**Category:** flash
**Created:** [August 20, 2004, 1:30pm UTC](https://forum.kirupa.com/t/anybody-good-with-math-question/61670 "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/61670/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 21, 2004, 12:40am UTC](https://forum.kirupa.com/t/anybody-good-with-math-question/61670/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.
