Post Reply 
Casio FC-200 Financial Consultant
12-24-2020, 02:25 PM
Post: #7
RE: Casio FC-200 Financial Consultant
(12-24-2020 06:02 AM)Gamo Wrote:  Hello Dave

I have try your Weekdays program.

Work out ok but not on February.

I try 2/1/2021 to 2/28/2021 program run and answer 21 days

but suppost to be 20 days.

Thanks

Gamo

Well that's interesting! At a glance, I can't figure out why it would do that. The program first calculates the actual number of days between the two dates, then calculates the number of days mod 7 since 1/6/1901 to work out the starting weekday. Must be some edge case I missed, as I don't think this has anything to do with February having fewer days. This was based on a 12C program I wrote; I'll have to see if that one has the same issue.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Casio FC-200 Financial Consultant - Gamo - 12-15-2020, 12:07 PM
RE: Casio FC-200 Financial Consultant - Dave Britten - 12-24-2020 02:25 PM



User(s) browsing this thread: 1 Guest(s)