{
  "id": "days-until-january-28",
  "version": "72c4902ac7cc",
  "status": "published",
  "name": "Days Until January 28",
  "question": "Days until January 28",
  "summary": "Counts the days from today, or any date you choose, to the next January 28, with its day of the week.",
  "category": "days",
  "subcategory": "countdowns",
  "url": "https://www.acalculator.org/days/days-until-january-28",
  "markdown": "https://www.acalculator.org/days/days-until-january-28.md",
  "kind": "function",
  "method": "Find the first January 28 on or after the start date, then count the days from the start date to it.",
  "assumptions": [
    "January 28 comes every year, so the count is never more than 365 days.",
    "The start date itself is not counted: from the day before January 28, the count is 1; on January 28 itself, it is 0.",
    "Start dates from January 1, 1900 to December 31, 2400 work for the count to January 28, the range the date field accepts.",
    "Today is the date on your own device, so the count to January 28 changes at midnight where you are. Dates are whole calendar days, so a daylight-saving change never adds or loses a day."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "from": {
        "title": "Count from",
        "description": "The date to count from. Today, unless you change it.",
        "type": "string",
        "format": "date"
      }
    }
  },
  "outputs": {
    "days": {
      "label": "Days until January 28",
      "description": "Whole days from the start date to the next January 28; 0 on the day itself.",
      "format": "integer"
    },
    "date": {
      "label": "Date",
      "description": "The next January 28 on or after the start date.",
      "format": "date-long"
    },
    "weekday": {
      "label": "Day of the week",
      "description": "The weekday of that date.",
      "format": "text"
    },
    "weeks": {
      "label": "In weeks",
      "description": "The same number of days in weeks and days.",
      "format": "text"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "from": "2026-09-30"
    },
    "outputs": {
      "days": 120,
      "date": "2027-01-28",
      "weekday": "Thursday",
      "weeks": "17 weeks and 1 day"
    },
    "text": "From September 30, 2026, there are 120 days until January 28 on Thursday, January 28, 2027."
  },
  "examples": [
    {
      "given": {
        "from": "2027-01-28"
      },
      "expect": {
        "date": "2027-01-28",
        "days": 0
      },
      "source": "U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years); Python 3 datetime (docs/progress/WP-44/truth.py)"
    },
    {
      "given": {
        "from": "2027-01-01"
      },
      "expect": {
        "date": "2027-01-28",
        "days": 27
      },
      "source": "U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years); Python 3 datetime (docs/progress/WP-44/truth.py)"
    },
    {
      "given": {
        "from": "2027-01-29"
      },
      "expect": {
        "date": "2028-01-28",
        "days": 364
      },
      "source": "U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years); Python 3 datetime (docs/progress/WP-44/truth.py)"
    }
  ],
  "sources": [
    "5 U.S.C. 6103 (federal holidays; weekend rule in 6103(b) and Executive Order 11582). Checked against OPM holiday schedules.",
    "Equinoxes and solstices: Jean Meeus, Astronomical Algorithms (2nd ed., 1998), chapter 27, checked against the US Naval Observatory."
  ],
  "related": [
    "days-until-january-27",
    "days-until-january-29",
    "days-until-january-1",
    "days-until-january-2",
    "days-until-january-3",
    "days-until-january-4",
    "days-until-january-5",
    "days-until-january-6",
    "days-until-january-7",
    "days-until-january-8",
    "days-until-january-9",
    "days-until-january-10",
    "days-until-january-11",
    "days-until-january-12",
    "days-until-january-13",
    "days-until-january-14",
    "days-until-january-15",
    "days-until-january-16",
    "days-until-january-17",
    "days-until-january-18",
    "days-until-january-19",
    "days-until-january-20",
    "days-until-january-21",
    "days-until-january-22",
    "days-until-january-23",
    "days-until-january-24",
    "days-until-january-25",
    "days-until-january-26",
    "days-until-january-30",
    "days-until-january-31",
    "days-between-dates"
  ],
  "changelog": []
}
