Skip to content

📅 Calculate up-to-date statistics for each year and 365 days. Print the Calendar Statistics Report.

Notifications You must be signed in to change notification settings

sourceduty/Calendar_Math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 

Repository files navigation

1

Calendar Math

📅 Calculate up-to-date statistics for each year and 365 days. Print the Calendar Statistics Report.


Calendar Math is designed to provide you with a custom Calendar Statistics Report based on your location. This report includes various statistics like the longest and shortest days of the year, the total number of weeks, the count of each weekday throughout the year, weekend-related statistics, a leap year check, and the number of public holidays specific to your country. It's a unique way to look at the year from a numerical and statistical perspective, tailored to your location.

Calendar Statistics Report for Canada

Example Calendar Statistics Report for Canada - 2024

- Longest day of the year: June 21
- Shortest day of the year: December 21
- Total number of weeks in the year: 52.14
- Total number of Mondays in the year: 53
- Total number of Tuesdays in the year: 53
- Total number of Wednesdays in the year: 52
- Total number of Thursdays in the year: 52
- Total number of Fridays in the year: 52
- Total number of Saturdays in the year: 52
- Total number of Sundays in the year: 52
- Total number of weekend days in the year: 104
- Total number of weekend sections in the year: 52
- The frequency of weekends in the year in percentage: 28.42%
- Leap year: Yes
- Number of public holidays: 9
- Number of public not a statutory holidays: 2

Public Holidays:
- New Year's Day: January 1
- Good Friday: April 10
- Easter Monday: April 13
- Victoria Day: May 18
- Canada Day: July 1
- Labour Day: September 7
- Thanksgiving Day: October 12
- Christmas Day: December 25
- Boxing Day: December 26

- The total number of weeks in the year 2024 is approximately 52.29. This accounts for the fact that there are 366 days in 2024, due to it being a leap year.
- Please note that public holidays can vary by province in Canada, and Good Friday's date changes each year.

Calendar Statistics Report for Brazil

Example Calendar Statistics Report for Brazil - 2024

Longest Day of the Year: June 21
Shortest Day of the Year: December 21
Total Number of Weeks in the Year: 52.29
Total Number of Mondays in the Year: 53
Total Number of Tuesdays in the Year: 53
Total Number of Wednesdays in the Year: 52
Total Number of Thursdays in the Year: 52
Total Number of Fridays in the Year: 52
Total Number of Saturdays in the Year: 52
Total Number of Sundays in the Year: 52
Total Number of Weekend Days in the Year: 104
Total Number of Weekend Sections in the Year: 52.0
The frequency of weekends in the year in percentage: 28.42%
Leap Year: True
Number of public holidays: 11

New Year's Day: January 1
Carnival: February 12 - 13 (varies)
Good Friday: March 29 (varies)
Tiradentes Day: April 21
Labor Day: May 1
Corpus Christi: May 30 (varies)
Independence Day: September 7
Our Lady of Aparecida: October 12
All Souls' Day: November 2
Republic Proclamation Day: November 15
Christmas Day: December 25

- Black Consciousness Day: November 20
- These dates provide a general guide, but please note that the actual observance of some holidays, particularly those that vary, might be different based on specific regional practices or adjustments for weekends. ​
- In Brazil, Black Consciousness Day (Dia da Consciência Negra) is observed annually on November 20th. It is not a federal statutory holiday, but it is recognized as a holiday in many states and municipalities throughout the country.


Timeline Math

Timeline Math helps you analyze a specific period by calculating various statistics related to time, such as the number of weeks, weekends, and public holidays within that timeline. It's designed to provide a detailed breakdown of the time elements within your specified start and end dates. If you have a period in mind, I can generate a customized Timeline Statistics Report for you.

Example Timeline Statistics Report

Timeline Statistics Report for the period from January 1, 2000, to December 31, 2024:

- Total number of years in the timeline: 25
- Total number of weeks in the timeline: 1304
- Total number of Mondays in the timeline: 1305
- Total number of Tuesdays in the timeline: 1305
- Total number of Wednesdays in the timeline: 1304
- Total number of Thursdays in the timeline: 1304
- Total number of Fridays in the timeline: 1304
- Total number of Saturdays in the timeline: 1305
- Total number of Sundays in the timeline: 1305
- Total number of weekend days in the timeline: 2610
- Total number of weekend sections in the timeline: 1304
- The frequency of weekends in the timeline as percentage: 28.58%
- Total number of leap years: 7
- Leap years in the timeline: [2000, 2004, 2008, 2012, 2016, 2020, 2024]
- Number of public holidays in the timeline: 250
- Number of public not a statutory holidays in the timeline: 125


Copyright (C) 2024, Sourceduty - All Rights Reserved.