{"id":4852,"date":"2022-12-26T23:52:00","date_gmt":"2022-12-27T02:52:00","guid":{"rendered":"https:\/\/www.blogs.unicamp.br\/zero\/?p=4852"},"modified":"2023-02-01T20:34:13","modified_gmt":"2023-02-01T23:34:13","slug":"what-is-the-maximum-amount-of-amended-holidays-in-brazil","status":"publish","type":"post","link":"https:\/\/www.blogs.unicamp.br\/zero\/4852\/","title":{"rendered":"What is the maximum amount of amended holidays? (in Brazil)"},"content":{"rendered":"\n<p class=\"eplus-wrapper wp-block-paragraph\">Every beginning of the year that old doubt arises\u2026 how many holidays on weekdays will we have?<\/p>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">This is a complicated question to answer at the regional level, as there are municipal and state holidays and many others that affect specific classes\/groups, such as October 28th, which is public servants&#8217; day.<\/p>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">According to Law n\u00ba 662, of April 6, 1949, revised by Law n\u00ba 10.607, of December 19, 2002, the following days are national holidays:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>January, 1st<\/li><li>April 21st<\/li><li>May 1<\/li><li>September 7th<\/li><li>November 2nd<\/li><li>November 15th<\/li><li>December 25th<\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">We will define that every national holiday that coincides with:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Tuesday will automatically amend with Monday.<\/li><li>Thursday will automatically amend with Friday.<\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">Note that the above definition affects the day before the start of the year, and the last day of the year (as it will be before the January 1st holiday of the following year). Thus, to solve our problem, which is the greatest number of holidays amended in a year, we will consider from January 1st to December 31st of that respective year.<\/p>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">Let&#8217;s start by assuming that the year is not a leap year, thus, placing the 8 dates (considering the effect of January 1st of the following year in relation to December 31st of the respective year) in relation to the 365 days of the year, we have: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>January 1st: 1<\/li><li>April 21: 111<\/li><li>May 1: 121<\/li><li>September 7th: 250<\/li><li>November 2nd: 306<\/li><li>November 15: 319<\/li><li>December 25th: 359<\/li><li>January 1 (following year): 366<\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">Now considering the remainder of the integer division by 7, of each of these dates, we have: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>January 1st: 1 mod 7 = 1<\/li><li>April 21: 111 mod 7 = 6<\/li><li>May 1: 121 mod 7 = 2<\/li><li>September 7: 250 mod 7 = 5<\/li><li>November 2: 306 mod 7 = 5<\/li><li>November 15: 319 mod 7 = 4<\/li><li>December 25: 359 mod 7 = 2<\/li><li>January 1 (following year): 366 mod 7 = 2<\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">These numbers allow us to determine from a stipulated day of the week, which days of the week the other holidays will be. Let&#8217;s do an example to illustrate:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>IF January 1: 1 mod 7 = 1 = SUNDAY (0 holidays) <ul><li>April 21: 111 mod 7 = 6 = FRIDAY (1 holiday)<\/li><li>May 1: 121 mod 7 = 2 = MONDAY (1 holiday)<\/li><li>September 7: 250 mod 7 = 5 = THURSDAY (2 holidays)<\/li><li>November 2: 306 mod 7 = 5 = THURSDAY (2 holidays)<\/li><li>November 15: 319 mod 7 = 4 = WEDNESDAY (1 holiday)<\/li><li>December 25: 359 mod 7 = 2 = MONDAY (1 holiday)<\/li><li>January 1st (following year): 366 mod 7 = 2 = MONDAY (0 public holidays, as December 31st will be Sunday)<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">Now we will present the results case by case:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>IF JANUARY 1 IS: <ul><li>SUNDAY: 8 days of amended holidays.<\/li><li>MONDAY: 10 amended public holidays.<\/li><li>TUESDAY: 5 amended public holidays.<\/li><li>WEDNESDAY: 6 amended public holidays.<\/li><li>THURSDAY: 8 amended public holidays.<\/li><li>FRIDAY: 7 amended public holidays.<\/li><li>SATURDAY: 6 days of amended holidays.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">Now, let&#8217;s analyze the situation in which the year is a leap year, thus placing the 8 dates (considering the effect of January 1st of the following year in relation to December 31st of the respective year) in relation to the 366 days of the year and already performing the remainder of integer division by 7, we have:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>January 1st: 1 mod 7 = 1<\/li><li>April 21: 112 mod 7 = 0<\/li><li>May 1: 122 mod 7 = 3<\/li><li>September 7: 251 mod 7 = 6<\/li><li>November 2: 307 mod 7 = 6<br>November 15: 320 mod 7 = 5<br>December 25: 360 mod 7 = 3<br>January 1 (following year): 367 mod 7 = 3<\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">These numbers allow us to determine from a stipulated day of the week, which days of the week the other holidays will be. We will do it case by case:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>IF JANUARY 1 IS: <ul><li>SUNDAY: 9 amended public holidays.<\/li><li>MONDAY: 4 amended public holidays.<\/li><li>TUESDAY: 8 amended public holidays.<\/li><li>WEDNESDAY: 7 amended public holidays.<\/li><li>THURSDAY: 8 amended public holidays.<\/li><li>FRIDAY: 7 amended public holidays.<\/li><li>SATURDAY: 8 days of amended holidays.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">Well, finishing the calculations, let&#8217;s see what the next year awaits us XD.<\/p>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">January 1, 2023 is a non-leap year and it starts on a Sunday\u2026<\/p>\n\n\n\n<p class=\"eplus-wrapper wp-block-paragraph\">That gives us 8 amended holidays\u2026 not bad :3 but let&#8217;s hope 2029 is coming! Next year we will have our best year for amended holidays, 10.<\/p>\n\n\n\n<p class=\"has-text-align-center eplus-wrapper wp-block-paragraph\">Cover image credits to <a href=\"https:\/\/pixabay.com\/users\/mohamed_hassan-5229782\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=6768660\">Mohamed Hassan<\/a> by <a href=\"https:\/\/pixabay.com\/\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=6768660\">Pixabay<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every beginning of the year that old doubt arises\u2026 how many holidays on weekdays will we have? This is a<\/p>\n","protected":false},"author":434,"featured_media":4802,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","_monsterinsights_skip_tracking":false,"pgc_sgb_lightbox_settings":"","_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[1225],"tags":[],"class_list":["post-4852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-v-8-ed-2"],"jetpack_featured_media_url":"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2022\/12\/travel-g5f4eb0c15_1280.png","_links":{"self":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts\/4852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/users\/434"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/comments?post=4852"}],"version-history":[{"count":1,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts\/4852\/revisions"}],"predecessor-version":[{"id":4853,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts\/4852\/revisions\/4853"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/media\/4802"}],"wp:attachment":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/media?parent=4852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/categories?post=4852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/tags?post=4852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}