This tag is for questions about combinatorial and computational issues with regards to calendar systems. A typical, well-known mathematical result in this direction is John Conway's Doomsday Algorithm for computing the "day of the week" associated to a given date.

learn more… | top users | synonyms

26
votes
5answers
6k views

Prove that every year has at least one Friday the 13th

Everyone knows Friday the 13th is regarded as a day of bad luck. Why does every year have at least one of this bad day?
24
votes
3answers
5k views

Why does this age calculation trick work?

The trick works like this: Take the current date in the format yyyymmdd and subtract it with your date of birth taken in the same format. Drop the last four digits to get your age. For example, I was ...
12
votes
2answers
429 views

Formula for occurrence of leap years in the Jewish calendar

Over at Judaism.SE, there was a discussion about a formula to determine leap years in the Jewish calendar. Basically, the calendar follows a 19-year cycle, and seven of those years -- 3, 6, 8, 11, 14, ...
12
votes
1answer
2k views

Weekend birthdays

My birthday this year (2011) is on a Friday. In most years, one's birthday the following year is on the subsequent day of the week, and in that pattern, my birthday next year (2012) it is on a ...
11
votes
3answers
4k views

Calculate which day of the week a date falls in using modular arithmetic

In Summer Wars the main character (he is a mathematician) calculates the day of the week of someone's birthday (19/07/1992 is Sunday). I know (very) basic modular arithmetic but I can't figure out how ...
10
votes
3answers
6k views

birthday problem - expected number of collisions

There are many descriptions of the "birthday problem" on this site — the problem of finding the probability that in a group of $n$ people there will be any (= at least 2) sharing a birthday. I am ...
8
votes
2answers
133 views

Under the Gregorian calendar, what days can never be Easter?

Obviously, October 31 can't be Easter any year whatsoever. Indeed no day in October can be Easter. But can February 28 be Easter? What about February 29? May 1? Is there a single consecutive range of ...
7
votes
2answers
254 views

Seasonal changes in hours of daylight

I will post my own answer to this question unless someone else posts the same answer first, but I am curious to know what other points of view might lead to different ways of answering it. ...
4
votes
6answers
228 views

Prove that in each year, the 13th day of some month occurs on a Friday [duplicate]

Prove that in each year, the 13th day of some month occurs on a Friday. No clue... please help!
4
votes
3answers
159 views

Probability of a year which is not a leap year

If a 4 digit year is choosen randomly, what is the probability that it is not a leap year ? This problem has come in my exam and i have written like this I know that the number of four digit year ...
4
votes
2answers
155 views

Prime number based calendar: how to calculate intermediate values?

I'm trying to define a new [silly] calendar, because there aren't enough of them yet. My calendar, so far, is specified: epoch (orthodox) is the moment the leading edges of the dinosaur-killing ...
3
votes
8answers
11k views

How many odd days are there in 1600 years ? I calculated it but I guess the result is wrong?

I had to calculate the number of odd days in 1600 years. I have read the answer to be equal to 0. But I don't get it to equal to 0. This is the way I am calculating the number of odd days in 1600 ...
3
votes
2answers
195 views

Five Fridays and Sundays on October

How to prove that if you take any 400 consecutive Octobers then exactly 14 % of those years have five Fridays and Sundays?
3
votes
3answers
109 views

Easter Dates Different

Show that there in no natural number $n$ such that, for each year $A$, the years $A$ and $A+n$ have the Easter with the same date. Use a computer program for your proof: A number of programs of Easter ...
3
votes
1answer
106 views

Given a day of the week and the day of the month, what is the range of time within which it will uniquely specify a single date?

In other words, given "2 Tues", (e.g. today, 2 July 2013), for how long must I wait until it is Tuesday on a 2nd of the month again? How does this interval change for each week? Is it constant or ...
3
votes
1answer
298 views

Periodicity of calendar

Let $A$ be the set of days in week, $A = \{Mon,Tue,Wed,Thu,Fri,Sat,Sun\}$, and $B = \{1,2,\dots,31\}$. For each date, we have a pair $(x,y)$, $x \in A$ and $y \in B$. Then we will have an infinite ...
2
votes
1answer
124 views

In a certain year, January had exactly $4$ Mondays and $4$ Fridays. What was the day on $2^{\text{nd}}$ October the previous year?

In a certain year, the month of January had exactly $4$ Mondays and $4$ Fridays. What was the day on Gandhi Jayanti $(2^{\text{nd}}$ October $)$ the previous year? I am not sure how to approach this ...
2
votes
2answers
3k views

Solve for numbers to appear on two six-sided dice

I have a small wooden calendar that uses two six-sided dice to display day of month. One die carries numbers 0, 1, 2, 6, 7, 8 and the other carries 0, 1, 2, 3, 4, 5. The six of course doubles as the ...
2
votes
3answers
99 views

Is there any fast way to get the number of a certain day in a week

I'm realy sorry, if this question is a bit stupid... But this is my first time on mathematics stackexchange. Do you guys now for example, how to know the number of monday in a year?
2
votes
2answers
516 views

Jack's birthday riddle

Anytime each of three consecutive months has exactly four Fridays, Jack's birthday will fall in one of those three months. Which month is that?
2
votes
4answers
51 views

probability that a number is a leap year

I have been asked the following question in an exam in Mathematics Phd Programme as a level of IQ Test. However I don't know how to figure it out. November 9,1994 was a Wednesday. Then what day will ...
2
votes
1answer
77 views

Is Christmas equally Likely to fall on any day of the week? [duplicate]

Assuming Christmas day falls on the 25th of December every year, and using the Gregorian calendar, is it equally likely to fall on any day of the week? (With no prior knowledge about last year's ...
2
votes
2answers
450 views

How to find day of a date

As previously there were a method to find the date from the year 1893 to 2032 , which is very difficult to take a list of table always . Is there any other easy way to find the day of any date ?
2
votes
1answer
33 views

A question about leap year

Very difficult to me, It is a question about leap years: "In the western calendar, a year having 365 days is called a common year, while a year having 366 days (with an extra day, February 29) is ...
2
votes
1answer
397 views

Day of week - 4th June, 2002 using Zeller's Rule

I know how to calculate day of week using Zeller's Rule, but the answer is coming as Sunday, while the correct answer is Tuesday. Where am I doing wrong? Please explain your answer step-by-step. ...
2
votes
1answer
2k views

Hindu calendar (lunar) to Gregorian calendar

We have to convert the Hindu calendar (the lunar one) to the Gregorian calendar. According to the (Dutch) Wikipedia (sorry for that, but it has more information than other websites), it is based on he ...
2
votes
0answers
33 views

when to use ( end point/date - start point/date + 1) , and when to use end point /date - start point /date? [duplicate]

This is a simple question on difference. I have seen the following situation - for example how many day you spend on a travel when the travel date was 14-Aug-2014 till 25-August-2014. The answer for ...
2
votes
0answers
60 views

Why this formula counts passed leap years in Persian arithmetic calendar?

I was reading about a calendar system with these characteristics: Years are grouped into cycles which begin with four normal years after which every fourth subsequent year in the cycle is a leap ...
1
vote
3answers
6k views

How often will the same date be on the same day of the week?

Is there any pattern in this (e.g. Once per five years)? Is it a sliding window?
1
vote
4answers
2k views

What is the probablity of January having 5 sundays. Similarly for the other months

I'm trying to find out what is the probability that a randomly chosen January will have 5 Sundays. Of course the answer for 4 Sundays would be 1. I presume that 31 day months will have a higher ...
1
vote
1answer
41 views

Proof about Friday the 13th

Few years ago I learned that there are more friday the 13th in the 400 years period of our calendar, than all other days, but I have never found any proof ! Can you help me please ?
1
vote
1answer
60 views

How to use Wolfram|Alpha to calculate Friday the 13ths

I know someone born on the 13th and we were talking about how Friday the 13th is his birthday from time to time. I thought that might be a good question for Wolfram|Alpha but no matter how I phrase it ...
1
vote
3answers
55 views

Calculate difference in days to reference date

This question is related to a programming question. Because I think it's pure mathematic I post this question here. I want to calculate the difference in days to a reference point. Therefore I have ...
1
vote
1answer
615 views

Formula to calculate difference between tow dates

I am working on getting date difference I have a formula to calculate it as follows 365*year + year/4 - year/100 + year/400 + date + (153*month+8)/5 but its not ...
1
vote
0answers
54 views

Question about Gauss' Determination of the first day of the year.

On the wikipedia article http://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week#Gauss.27_algorithm it explains the Gaussian Formula for calculating the first day of the year. I was ...
1
vote
1answer
128 views

4-4-5 retail calendar - calculating extra week

I have been tasked with making a 4-4-5 calendar for a retail reporting system (in javascript using moment.js but this shouldn't matter). http://en.wikipedia.org/wiki/4-4-5_calendar A 52 week year is ...
1
vote
0answers
35 views

Get number of week by given date and day of week

Is there a formula to get the number of week by a given date and day of week for example Oct 15, 2014 wed. how do i get what number of week is it?
1
vote
0answers
55 views

Calculating day on date [duplicate]

Possible Duplicate: Calculate which day of the week a date falls in using modular arithmetic Yesterday there was a guy on TV. He asked people in the audience at what date they were born and ...
0
votes
1answer
484 views

A year having more than one Friday the 13th?

We know that every year has at least one Friday the 13th. What about two Friday the 13ths, in a year? What is the probability of a year having two Friday the 13ths? (interesting subquestion here is ...
0
votes
2answers
340 views

What is the minimum number days between one Friday the 13th and the next Friday the 13th?

What is the minimum number days between one Friday the 13th and the next Friday the 13th?(Assume that the year is a leap year)
0
votes
2answers
400 views

Modular Arithmetic Calendars

If a calendar has 427 days in the year and 8 days a week and the first day of their current year, which is 1027 falls on the second day of their week. What day of the week will the first day of the ...
0
votes
1answer
138 views

How long would it have taken the Swedes to align their calendar with the Gregorian calendar?

According to http://www.clas.ufl.edu/users/ufhatch/pages/03-Sci-Rev/SCI-REV-Home/Historical-Research/Calendars/gregorian_calendar_history.html "The Swedish dithered. In 1700 they began what was ...
0
votes
1answer
127 views

calendars problem using zellers formulae

i've solved most of the day finding problems using zellers formulae $$ Z= K + \frac{13M -1}{5} + D +\frac{D}{4} + \frac{C}{4} - 2C $$ where $K$ = given $M$ = given month no. ( but here month ...
0
votes
5answers
5k views

How often in years do calendars repeat with the same day-date combinations (Julian calendar)?

E.g. I'm using this formulas for calculating day of week (Julian calendar): \begin{align} a & = \left\lfloor\frac{14 - \text{month}}{12}\right\rfloor\\ y & = \text{year} + 4800 - a \\ m & ...
0
votes
1answer
115 views

How to calculate Anniversary Billing for Uneven time frames?

What is the best way to calculate anniversary billing monthly with different lengths We want to charge for storage say starting June 1st to July 1st and if the customer stays longer than July 1st we ...
0
votes
0answers
7 views

Calculate day from x position, when some spacer elements are used

Look at the following sketch: This should be a calendar view. In the beginning and the end of each week a 2 px separator is used (blue line). A week consists of seven days. Each day has a certain ...
0
votes
0answers
57 views

About an answer given for Project Euler 19

The problem is here and someone gave this answer but I don't understand it even if I know the rule of large numbers. If you want to write a code for this, it is really boring. On the other hand, ...
0
votes
2answers
46 views

Calculate the distance between days of the week

I'm trying to create a formula that will give me the distance in days between 2 different days of the week with min/max of +7/-7. So for instance is there a formula to find that the days between this ...
0
votes
0answers
14 views

Find the datetime that is the true corresponding time to a calendar time in another year accounting for leap year

I want to make averages from values recorded on the hour. Because of leap time and the gregorian calendar, March 1st 12pm is not really the same point in earth's year when comparing this year with any ...
0
votes
1answer
67 views

Converting decimal dates to calendar dates?

I have the decimal number 2005.067 which represents the date January 25, 2005. The math equation below shows how the decimal number is created 2005 + (25 - 0.5)/365. I want to be able to grab 2005.067 ...