4 days ago from today is 09 Nov 2024, a Saturday. Calculating a short time span like 4 days in the past is typically straightforward. For periods under a week, it's a matter of simple backward counting, often doable with just the days of the week. Since today is Wendesday, we'll actually need to start considering the weekend. Two days from now the weekend begins and it could throw off our calculation if we consider work days. – I generally backtrack using the days of the week for quick reference. Additionally, we’ll need to consider that with 13 days until the end of November, being in the middle of of the month means that 4 days ago will keep us in November and we don’t need to worry about adjusting months or years.
All of our day calculators are measured and QA'd by our engineer. Read more about the Git process here. But here's how 4 days ago gets calculated on each visit:
4 days is Saturday November 09, 2024 or could be if you only want workdays. This calculation takes 4 days and only subtracts by the number of workdays in a week. Remember, removing the weekend from our calculation will drastically change our original Saturday November 09, 2024 date.
Work days Solution
Monday
Tuesday
Wednesday
Thursday
Friday
4 days back
Saturday
November 09
Sunday
Counting back from today is Saturday November 09, 2024 using a full calendar, and is also 96 hours ago and 86.03% of the year.
Saturday Saturday November 09, 2024 was the 314 day of the year. At that time, it was 86.03% through 2024.