Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!

Template:Weekday in month

From Shroud of the Avatar Wiki - SotA
Jump to navigation Jump to search

The template then gives j, the day of the month, as calculated by the following formulae.

j = 7×n − 6 + (ww1) mod 7 (for positive n)
j = t + 7×(n + 1) − (wtw) mod 7 (for negative n)

Where t is the last day of the month, wt is the ISO weekday number of the last day of the month, w1 is the ISO weekday number of the first day of the month and n and w are as defined above.