hesaplayıcı
Menu

Day Counter: API and MCP

Day Counter over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/time.day-counter/mcp/time

Id
time.day-counter
Version
1.0.0
Access
Free
Tool page
Day Counter
Schema
GET /api/v1/tools/time.day-counter

Input

FieldTypeConstraintsDefaultDescription
target (required)stringTarget date
fromstringStart date · Leave it empty to use today (Türkiye time).

Output

FieldTypeDescription
daysnumberDays until the target (days)
weeksnumberFull weeks (weeks)
weekDaysnumberDays after the full weeks (days)
passedbooleanThe target date has passed: a negative value is the number of days since.

Example request

{
  "input": {
    "target": "2027-01-01",
    "from": "2026-09-13"
  },
  "locale": "en"
}
Example answer
{
  "output": {
    "days": 110,
    "weeks": 15,
    "weekDays": 5,
    "passed": false
  },
  "steps": [
    {
      "id": "days",
      "formula": "days left = target date − start date",
      "substitution": "days left = 2027-01-01 − 2026-09-13",
      "value": 110,
      "unit": "days"
    },
    {
      "id": "weeks",
      "formula": "full weeks = ⌊|days left| / 7⌋",
      "substitution": "full weeks = ⌊110 / 7⌋",
      "value": 15,
      "unit": "weeks"
    },
    {
      "id": "weekDays",
      "formula": "remaining days = |days left| − 7 × full weeks",
      "substitution": "remaining days = 110 − 7 × 15",
      "value": 5,
      "unit": "days"
    }
  ],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/time/day-counter-calculator",
    "title": "Day Counter"
  }
}