0
0

Counting Days Between Two Dates

Introduction

பல aptitude மற்றும் reasoning கேள்விகளில், இரண்டு தேதிகளுக்கு இடையிலான துல்லியமான நாட்கள் (அல்லது வாரங்கள்) எண்ணிக்கையை கேட்பார்கள். சரியான கணக்கீட்டிற்கு மாதங்களின் நாட்கள் (30/31/28/29), Leap Year நிலை, மேலும் start/end dates ஐ inclusive அல்லது exclusive ஆக எண்ண வேண்டுமா என்பதை தெளிவாக கையாள வேண்டும்.

Pattern: Counting Days Between Two Dates

Pattern

மொத்த நாட்களை கணக்கிட, கால இடைவெளியை முழு ஆண்டுகள், முழு மாதங்கள் மற்றும் மீதமுள்ள நாட்கள் என்று பிரிக்கவும் - Leap Year ஐ கணக்கில் கொண்டு, கேள்வி கேட்கும் inclusive/exclusive விதியை சரியாகப் பயன்படுத்தவும்.

Step-by-Step Example

Question

15 August 2023 மற்றும் 15 August 2024 இடையிலான நாட்கள் எண்ணிக்கையை கண்டறியவும் (start date மற்றும் end date இரண்டும் inclusive).

Solution

  1. Step 1: Inclusive / Exclusive விதியை தீர்மானிக்கவும்

    கேள்வியில் inclusive of start date and end date என்று குறிப்பிடப்பட்டுள்ளது. அதாவது 15 Aug 2023 மற்றும் 15 Aug 2024 இரண்டும் எண்ணப்பட வேண்டும்.
  2. Step 2: முழு ஆண்டை எண்ணி Leap Year ஐ சரிபார்க்கவும்

    15 Aug 2023 முதல் 15 Aug 2024 வரை துல்லியமாக ஒரு ஆண்டு. 2024 ஒரு Leap Year (4-ஆல் வகுபடும்; 400 விதி தடையில்லை) → அந்த ஆண்டு 366 நாட்கள்.
  3. Step 3: “ஒரு ஆண்டு (inclusive)” ஐ நாட்களாக மாற்றவும்

    Start மற்றும் end dates இரண்டும் சேர்த்ததால், ஒரு முழு ஆண்டு = 366 நாட்கள் (29 Feb 2024 இந்த span இல் வருகிறது). கேள்வி exclusive ஆக இருந்தால், தேவையானபடி 1 நாளை கழிக்க வேண்டும்.
  4. Final Answer:

    366 days
  5. Quick Check:

    2024 இல் February 29 உள்ளது → 365 → 366 ஆகும் → inclusive விதி உறுதி செய்கிறது ✅

Quick Variations

1. Start மற்றும் end date ஒன்றே என்றால்: inclusive → 1 day; exclusive → 0 days.

2. மாதங்களை கடக்கும் spans இற்கு, மாதங்களின் நாட்களை பயன்படுத்தவும் (Jan 31, Feb 28/29, Mar 31, Apr 30…).

3. நீண்ட spans இற்கு, முதலில் முழு ஆண்டுகளை (365/366) எண்ணி, பின்னர் மாதங்கள், பின்னர் மீதமுள்ள நாட்களை சேர்த்தால் தவறுகள் குறையும்.

Trick to Always Use

  • Step 1 → Inclusive அல்லது exclusive எண்ண வேண்டுமா என்பதை ஆரம்பத்திலேயே முடிவு செய்யவும் (இது இறுதியில் ±1 மாற்றத்தை ஏற்படுத்தும்).
  • Step 2 → கால இடைவெளியை முழு ஆண்டுகள், முழு மாதங்கள், மீதமுள்ள நாட்கள் என்று பிரிக்கவும்; Leap Year இல் February கடந்தால் அதைக் கணக்கில் கொள்ளவும்.

Summary

Summary

  • எண்ணிக்கையை எளிதாக்க span ஐ ஆண்டுகள், மாதங்கள், மீதமுள்ள நாட்கள் என்று பிரிக்கவும்.
  • Inclusive அல்லது exclusive என்பதை கணக்கிடுவதற்கு முன் தெளிவுபடுத்தவும்.
  • 29 February உள்ளால் மட்டுமே Leap Year ஐ சேர்க்கவும்.
  • Quick method: ஆண்டுகள் → நாட்களாக மாற்றவும் (365/366), மாத நாட்களை சேர்க்கவும், மீதமுள்ள நாட்களை சேர்க்கவும்; இறுதியில் inclusive/exclusive க்கு ஏற்ப சரிசெய்யவும்.

நினைவில் கொள்ள வேண்டிய உதாரணம்:
15 Aug 2023 → 15 Aug 2024 (inclusive) = ஒரு ஆண்டு; 2024 Leap Year → 366 days.

Practice

(1/5)
1. Find the number of days between 1st January 2023 and 1st January 2024 (exclusive of both dates).
easy
A. 364
B. 365
C. 366
D. 367

Solution

  1. Step 1: Find the total span

    From 1 Jan 2023 to 1 Jan 2024 the difference (end - start) is 365 days because 2023 is not a leap year.
  2. Step 2: Convert to strictly-between (exclusive) count

    Exclusive of both start and end means we count only the days strictly between them: (end - start) - 1 = 365 - 1 = 364 days.
  3. Final Answer:

    364 → Option A
  4. Quick Check:

    One full year = 365 days; removing both endpoints leaves 364 days strictly between the two dates ✅
Hint: For exclusive ranges one year apart, strictly-between days = (365 or 366) - 1.
Common Mistakes: Incorrectly adding or subtracting 2 instead of using the strictly-between formula.
2. How many days are there between 10th March 2024 and 10th April 2024 (inclusive)?
easy
A. 30
B. 31
C. 32
D. 33

Solution

  1. Step 1: Break the period

    From 10 March 2024 to 31 March 2024 (inclusive) → 31 - 10 + 1 = 22 days.
  2. Step 2: Add April days

    From 1 April 2024 to 10 April 2024 (inclusive) → 10 days.
  3. Step 3: Total days

    22 + 10 = 32 days.
  4. Final Answer:

    32 → Option C
  5. Quick Check:

    March remaining = 22 days, April 1-10 = 10 days → total 32 ✅
Hint: For inclusive spans across months, add remaining days in the first month and all days in the next month.
Common Mistakes: Using 31 days (same-date rule) without including both endpoints.
3. Find the number of days between 5th February 2020 and 5th March 2020 (inclusive).
easy
A. 28
B. 29
C. 30
D. 31

Solution

  1. Step 1: Note leap year

    2020 is a leap year, so February has 29 days.
  2. Step 2: Count inclusive days

    From 5 Feb to 29 Feb inclusive = 29 - 5 + 1 = 25 days. Add Mar 1-Mar 5 inclusive = 5 days. Total = 25 + 5 = 30 days.
  3. Final Answer:

    30 → Option C
  4. Quick Check:

    Leap-year Feb contributes 25 days from 5th to 29th, plus 5 days in March → 30 ✅
Hint: Compute remaining days in first month (inclusive) then add days in next month (inclusive).
Common Mistakes: Using 28 for Feb in a leap year or forgetting inclusive counting.
4. How many days are there from 1st June 2023 to 31st August 2023 (inclusive)?
medium
A. 91
B. 92
C. 93
D. 94

Solution

  1. Step 1: Sum full months

    June = 30 days, July = 31 days, August = 31 days.
  2. Step 2: Add totals (inclusive of all days)

    30 + 31 + 31 = 92 days (since we include all days from 1 June through 31 August).
  3. Final Answer:

    92 → Option B
  4. Quick Check:

    Three full months (30 + 31 + 31) = 92 ✅
Hint: When range covers full months starting 1st to last day, sum month lengths directly.
Common Mistakes: Adding an extra day for inclusivity when the range already covers full months.
5. Find the number of days between 25th December 2022 and 5th January 2023 (inclusive).
medium
A. 10
B. 11
C. 12
D. 13

Solution

  1. Step 1: Count days in December (inclusive)

    From 25 Dec to 31 Dec inclusive = 31 - 25 + 1 = 7 days.
  2. Step 2: Count days in January (inclusive)

    1 Jan to 5 Jan inclusive = 5 days.
  3. Step 3: Total

    7 + 5 = 12 days.
  4. Final Answer:

    12 → Option C
  5. Quick Check:

    25 Dec → 5 Jan inclusive spans 12 consecutive calendar days ✅
Hint: Add remaining days of first month (inclusive) + days in next month (inclusive).
Common Mistakes: Double-counting an extra day when switching months or incorrect inclusivity handling.

Mock Test

Ready for a challenge?

Take a 10-minute AI-powered test with 10 questions (Easy-Medium-Hard mix) and get instant SWOT analysis of your performance!

10 Questions
5 Minutes