Calculating calendar dates.............improve calculation speed also..............
PaGaLGuY.com - The Everything of MBA, CAT 2008, GMAT, XAT, IIM
         Home          MBA Forums         PG Office Blog         Contact Us         About Us                  Jobs @ PG
Exclusive Bschool Content:      Interviews      B-School Watch     MBAs speak     Placements     GMAT & MBA Abroad      Form Notifications
» Sponsors






Go Back   PaGaLGuY.com - The Everything of MBA, CAT 2008, GMAT, XAT, IIM > Exam Resources > Prep Resources

Notices
Prep Resources Share and discuss exam related resources. GDs, PIs, GK, Study Notes, URLs etc. Use this forum to share information which is not related to any specific exam.

Tags: , , , , ,

Reply
 
Thread Tools Display Modes
Calculating calendar dates.............improve calculation speed also..............
Old
  (#1)
sunish
has no status.
Trainee PaGaL
 
Status: Offline
Posts: 39
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 19 Times in 7 Posts
Join Date: Nov 2003
Location: Mumbai, Maharashtra
Calculating calendar dates.............improve calculation speed also.............. - 24-06-2004, 01:31 AM

hello all!!!!!!!

the questions of calculating calendar dates usually comes in CAT etc..........
many of you may know many tricks of calculating calendar dates and those may be easy than the following method but this method also buits up the calculation speed as a whole...........
u may do one thing: now as u r sitting in front of the pc , click on the time display of the taskbar............a window will open in which there is diplay of a watch n a calendar.............. while seeing the watch and stare at any date in the calendar and apply the following method to arive at its day..............religiuosly follow this and u may increase ur speed of calculation.............change the calendar and utilise the method...........i have devised this method to improve my speed ( the method of calculation is not mine but theWCT watch,calendat taskbar method is mine)............

the method is as follows:

What day of the week will May 12, 2034 be? What day of the week was May 12, 1298? Here's a neat algorithm that will tell you:


(Note: all divisions, except where noted otherwise, are integer divisions, in which remainders are discarded.)

First figure out the values for a, y, and m -- variables to be plugged into a formula.

a = (14 - month)/12 (month = # of month, 1 for Jan, 2 for Feb, etc)

y = year - a (year = the 4 digit year)

m = month + 12a - 2

Next, plug the values of y and m into the following formula to calculate the day:

d = (day + y + y/4 - y/100 + y/400 + 31m/12) mod 7

(Note: mod 7 means "modulo division." That is, take the remainder instead of the quotient as your answer. For example, 20 mod 3 = 2, because the remainder is 2.)

The answer you get for d will correspond to a day of the week as such:

0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday

Here's an example.
What day of the week will April 5, 2020 fall on?

First figure out a, y, and m:

a = (14 - 4)/12 = 0 (remember, it's integer division so remainders are discarded. 4 represents the month of April since it's the fourth month of the year.)

y = 2020 - 0 = 2020

m = 4 + 12(0) - 2 = 2

Now plug y and m into the d formula to calculate the day:

d = (5 + 2020 + 2020/4 - 2020/100 + 2020/400 + 31(2)/12) mod 7
d = (5 + 2020 + 505 - 20 + 5 + 5) mod 7
d = 2520 mod 7
d = 0 (2520/7 = 360 with a remainder of 0)

Recall from above that 0 = Sunday. So April 5, 2020 will be a Sunday.

Cool, huh? Remember, you can do this for dates in the past as well.

(COURTESY CURIOUS MATH)

do tell me abt ur results
  Send a message via Yahoo to sunish  
Reply With Quote
The Following User Says Thank You to sunish For This Useful Post:
prabu_fpe (20-12-2006)
Sponsored Links
Re: Calculating calendar dates.............improve calculation speed also..............
Old
  (#2)
manjumba
has no status.
Newbie PaGaL
 
Status: Offline
Posts: 12
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2004
Re: Calculating calendar dates.............improve calculation speed also.............. - 15-10-2004, 01:35 PM

:P THANK U
IT HELPED A LOT

MANJU
   
Reply With Quote
Old
  (#3)
ILLUMINATUS
has no status.
Certified PaGaL
 
ILLUMINATUS's Avatar
 
Status: Offline
Posts: 1,546
Groans: 0
Groaned at 2 Times in 2 Posts
Thanks: 13
Thanked 26 Times in 13 Posts
Join Date: Oct 2004
Location: Ga Ga Land
Age: 24
15-10-2004, 01:51 PM

yeah.... real good work dude... do keep posting such tips n tricks
blitzkrieg
  Send a message via Yahoo to ILLUMINATUS  
Reply With Quote
Re: Calculating calendar dates.............improve calculation speed also..............
Old
  (#4)
newguy
has no status.
Hardcore PaGaL
 
newguy's Avatar
 
Status: Offline
Posts: 350
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 25 Times in 5 Posts
Join Date: Sep 2004
Location: Hyderabad
Re: Calculating calendar dates.............improve calculation speed also.............. - 15-10-2004, 01:58 PM

This is really good !

Just one question....

In some question, they give some hypothetical scenario..such as if 1st march is a sunday then what will be 7th dec of next year.....in such question, do you first apply this method to find what 1st march is ...and then see the offset and then go on to 7th dec of next year..I guess I am confusing you..just tell me what you do with such hypothetical cases where year is not given...only some initial condition is given...


I think, therefore I am ..............Rene Descartes
  Send a message via Yahoo to newguy Send a message via AIM to newguy Send a message via MSN to newguy  
Reply With Quote
Old
  (#5)
Jackal
does not believe in statuses
Addicted PaGaL
 
Jackal's Avatar
 
Status: Offline
Posts: 1,364
Groans: 26
Groaned at 44 Times in 19 Posts
Thanks: 115
Thanked 390 Times in 129 Posts
Join Date: Oct 2003
Location: !nD!a
Age: 26
15-10-2004, 08:14 PM

i guess it works somethin like.. if x date of x month is some day say like.. sunday then x date of the x month of the next yr will b monday.. thz cuz when u divivde 365 by 52 u get 1 remainder.. so 4 ordinary yr u add a day n 4 leap yrs 2 days.. n then in the same way reach to the particular date they have asked by using the same thing in months.. (ie 4 30 day month add 2 days 4 a 31 day month add 3 days etc)

cheers


I refuse to be a softwhore engineer..

A fine beer may be judged with only one sip, but it's better to be thoroughly sure


Blog..!!
  Send a message via Yahoo to Jackal  
Reply With Quote
Re: Calculating calendar dates.............improve calculation speed also..............
Old
  (#6)
siddharthaduggirala
has no status.
Trainee PaGaL
 
siddharthaduggirala's Avatar
 
Status: Offline
Posts: 67
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 14
Thanked 11 Times in 11 Posts
Join Date: Jul 2005
Location: Chatham NJ
Age: 25
Thumbs up Re: Calculating calendar dates.............improve calculation speed also.............. - 28-07-2006, 03:02 PM

Quote:
Originally Posted by sunish
hello all!!!!!!!

the questions of calculating calendar dates usually comes in CAT etc..........
many of you may know many tricks of calculating calendar dates and those may be easy than the following method but this method also buits up the calculation speed as a whole...........
u may do one thing: now as u r sitting in front of the pc , click on the time display of the taskbar............a window will open in which there is diplay of a watch n a calendar.............. while seeing the watch and stare at any date in the calendar and apply the following method to arive at its day..............religiuosly follow this and u may increase ur speed of calculation.............change the calendar and utilise the method...........i have devised this method to improve my speed ( the method of calculation is not mine but theWCT watch,calendat taskbar method is mine)............

the method is as follows:

What day of the week will May 12, 2034 be? What day of the week was May 12, 1298? Here's a neat algorithm that will tell you:


(Note: all divisions, except where noted otherwise, are integer divisions, in which remainders are discarded.)

First figure out the values for a, y, and m -- variables to be plugged into a formula.

a = (14 - month)/12 (month = # of month, 1 for Jan, 2 for Feb, etc)

y = year - a (year = the 4 digit year)

m = month + 12a - 2

Next, plug the values of y and m into the following formula to calculate the day:

d = (day + y + y/4 - y/100 + y/400 + 31m/12) mod 7

(Note: mod 7 means "modulo division." That is, take the remainder instead of the quotient as your answer. For example, 20 mod 3 = 2, because the remainder is 2.)

The answer you get for d will correspond to a day of the week as such:

0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday

Here's an example.
What day of the week will April 5, 2020 fall on?

First figure out a, y, and m:

a = (14 - 4)/12 = 0 (remember, it's integer division so remainders are discarded. 4 represents the month of April since it's the fourth month of the year.)

y = 2020 - 0 = 2020

m = 4 + 12(0) - 2 = 2

Now plug y and m into the d formula to calculate the day:

d = (5 + 2020 + 2020/4 - 2020/100 + 2020/400 + 31(2)/12) mod 7
d = (5 + 2020 + 505 - 20 + 5 + 5) mod 7
d = 2520 mod 7
d = 0 (2520/7 = 360 with a remainder of 0)

Recall from above that 0 = Sunday. So April 5, 2020 will be a Sunday.

Cool, huh? Remember, you can do this for dates in the past as well.

(COURTESY CURIOUS MATH)

do tell me abt ur results

This is just awesome!! Can u come up with more stuff like this
   
Reply With Quote
Re: Calculating calendar dates.............improve calculation speed also............
Old
  (#7)
gpta_varun
has no status.
Trainee PaGaL
 
Status: Offline
Posts: 56
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 3
Thanked 3 Times in 3 Posts
Join Date: Oct 2005
Location: India
Age: 27
Smile Re: Calculating calendar dates.............improve calculation speed also............ - 31-07-2006, 04:02 PM

Hi ... Great concept ......

But i for some reason not getting the answer for 15 the sep 1698 .

Can anyone hlp me out .





thnx
   
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to improve Reading speed madhavi English Resources 50 26-07-2008 11:34 PM
Improve reading speed and comprehension somnabulist Prep Resources 3 03-10-2005 03:13 PM
Increase your calculation speed akhilbharatsharma CAT and Related Discussion 13 29-07-2005 09:38 AM
Analytical Writing (Issue/Argument) flyingkolours International and Indian MBA schools accepting GMAT 34 01-12-2004 02:44 PM

» Sponsors










PaGaLGuY.com is not responsible for the views and opinions of the posters.
PaGaLGuY.com is an Inzane Labs Private Limited production.
Hosted on servers powered by Neutral Web