Christmas day formula

Miscellaneous Forums/General Discussion/Christmas day formula

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@MattVonFat: exactly. Christmas falls on a tuesday in 2080. Then just use that as a start instead of 1990. And since 2080 (tens) start with an even number you would could 80 as 1 point, 2070 as 2 etc etc.

Here's how I would do it.

2080 = 1 point
2070 = 2 points
2060 = 1 point
2050 = 2 points
total = 6

Now add 6 days to Tuesday and you get Monday.

2045's leap years are 2040, 2044 and 2048. Advance 1 day for non-leaps years and 2 days for leap years.

2040 = Monday
2041 = Tuesday
2042 = Wednesday
2043 = Thursday
2044 = Saturday
2045 = Sunday

I haven't double check but according to my formula, Christmas should fall on a Sunday in 2045.

going to check.

Ok, seems I'm one day off. Lemme see what went wrong.