Calculating day of week and Easter date
Given day, month, and year, this function finds the corresponding day of week. The days of week are encoded as the follows: Let's calculate the number of days passed since some Sunday modulo seven. For example, 31 December 2000 was Sunday.