45 weeks ago from today was 16 Jun 2023, a Friday. Anytime we’re subtracting halves of the year, we need to ensure that we’re still in 2024. It looks like 45 weeks from now will bring us back to pre 2023 and we’ll need to factor this into our subtraction because it will change the calendar and fiscal years. For larger calculations like this, I start by breaking calendar.day_name[solution.weekday()]n the year, then move into 45 weeks.
All of our day calculators are measured and QA'd by our engineer. Read more about the Git process here. But here's how 45 weeks ago gets calculated on each visit:
45 weeks is Friday June 16, 2023 or could be if you only want workdays. This calculation takes 45 weeks and only subtracts by the number of workdays in a week. Remember, removing the weekend from our calculation will drastically change our original Friday June 16, 2023 date.
Work weeks Solution
Monday
Tuesday
Wednesday
Thursday
45 weeks back
Friday
June 16
Saturday
Sunday
Counting back from today is Friday June 16, 2023 using a full calendar, and is also 7560 hours ago and 45.75% of the year.
Friday Friday June 16, 2023 was the 167 day of the year. At that time, it was 45.75% through 2023.