Calculate any Easter Date

Author(s): Dick Wagner
Publication: The Plotter
Pub Details: The Plotter v5 n11 (Volume 5, Issue 11)
Date: November 1987
Pages: 7

Easter is defined as the ceremony held on the first Sunday after the date of the first full moon that occurs on or after March 21. We all know that we can go to a current calender to find the date for Easter. How about next year, or 30 years ago, or the year 1999? Well, this program will do the job. It is based on a Julian calender calculation, which is another program at a future time. This program also uses modulo arithmatic which you don’t need to know about to run the program. I have included explanations of the various equations should you wonder about modulo math, or did you study it in school? Anyway, just follow the prompts for proper input of the desired year and there you are!

The following has been extracted and adapted to Sinclair Basic from the book “Forcasting On Your Microcomputer” authored by Daniel B. Nickell, TAB Books Inc.

Modulo math can be illustrated as:

2000 mod19=19*(2000/19-INT(2000/10))=5

This essentially states that the carry from dividing 2000 by 19 is the same as the carry * 19. The calculation must be to many places to get 5 in this example.

The author has included the various variables and equations, labeled as in the program. To continue with the algorithm for computing the date of Easter:

 1. A=Y mod 19
 2. B=INT part Y/100
 3. C=Y mod 100
 4. D=INT part B/4
 5. E=B mod4
 6. F=INT part (B+8)/25
 7. G=INT part (B-F+1)/3
 8. H=(19+B-D-G+15) mod3
 9. I=INT part C/4
10. K=C mod4
11. L=(32+2E+21-H-K) mod7
12. M=INT part (A+11H++221)/451
13. N=INT part (H+L-7M+114/31
14. P=(H+L-7M+114) mod31
15. The day of the month on which
    Easter falls = P+1
15. The month of Easter is = N where
    January is 1
  10 PRINT "PROGRAM TO CALCULATE EASTER FOR ANY YEAR": PRINT
20 DIM M$(5,8): LET M$(2)="FEBRUARY": LET M$(3)="MARCH": LET M$(4)="APRIL": LET M$(5)="MAY"
30 DEF FN M(X,Y)=INT (Y*(X/Y-INT (X/Y))+.5)
35 REM this can be read as M(X,Y) is the same as X mod Y.
40 INPUT "Enter year (4 digits) ";Y
50 LET A=FN M(Y,19)
60 LET B=INT (Y/100): LET C=FN M(Y,100)
70 LET D=INT (B/4): LET E=FN M(B,4)
80 LET F=INT ((B+8)/25): LET G=INT ((B-F+1)/3)
90 LET H=FN M((19*A)+B-D-G+15,30)
100 LET I=INT (C/4): LET K=FN M(C,4)
110 LET L=FN M(32+(2*E)+(2*I)-H-K,7)
120 LET M=INT ((A+(11*H)+(22*L))/451)
130 LET Z=H+L-(7*M)+114: LET N=INT (Z/31): LET P=FN M((H+L-(7*M)+114),31)
140 PRINT "EASTER SUNDAY, ";Y;", falls on ";M$(N);INT (P+1)
160 PAUSE 200: CLS : PRINT "Another year? y or n ": PAUSE 200: IF INKEY$="y" OR INKEY$="Y" THEN CLS : GO TO 20

Transcription note: the listing is corrected. As printed, line 30 works the remainder out in floating point and gives wrong dates for many years (2000 gave April 22); corrected to round the result, DEF FN M(X,Y)=INT (Y*(X/Y-INT (X/Y))+.5).

I must say that I do not have a history of Easter dates to refer back to to determine the accuracy of the calculations. At least it works for this year.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.