Question: how to calculate date of the week?
Answer: Take the last two digits of the year. Divide by 4, discarding any fraction. Add the day of the month. Add the month's key value: JFM AMJ JAS OND 144 025 036 146. Subtract 1 for January or February of a leap year.