My assignment is to create a program that calculates the day of the week for any given date. My book has instructed me to use the Julian day number, and has also given me directions on how to calculate it. I've checked my code against the book's algorithm, and I appear to be following the directions to a T (well, more or less). When I tried March 13th, the Julian day was correct but not the day of the week - but that subject has its own thread somewhere else on this forum. When I try my birthday, however, the Julian day calculation appears to be incorrect.
Turns out it's the book's algorithm that's incorrect. According to the site to which I linked, there's a special rule for dates in January and February. Also, the 1720994.5 should be 1720995.