Productivity

Habit Streak Calculator

Live

Calculate current streak from completion dates, as-of date.

About Habit Streak Calculator

Calculate current streak from completion dates, as-of date. Enter completion dates, as-of date in a purpose-built habit streak calculator interface designed for this subject. Unique completion dates are sorted into consecutive-day runs and compared with the as-of date. The result includes current streak, longest streak, completion days, streak gaps, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Habit Streak Calculator

Workspace

Structured calculation

Follow the input-to-result path; the fields below remain the source of every value.

Complete the fields to prepare a result.

Enter completion dates.

Enter as-of date.

Habit Streak Calculator result

Enter the values above, then calculate to see a detailed result.

How Habit Streak Calculator works

Unique completion dates are sorted into consecutive-day runs and compared with the as-of date.

How it works

Unique completion dates are sorted into consecutive-day runs and compared with the as-of date. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.

Examples

Habit Streak Calculator worked example

Example input
{
    "completion_dates": "2026-07-09\n2026-07-10\n2026-07-11\n2026-07-13\n2026-07-14\n2026-07-15",
    "as_of": "2026-07-15"
}
Expected result
{
    "current_streak": 3,
    "longest_streak": 3,
    "completion_days": 6,
    "gaps": [
        {
            "after": "2026-07-11",
            "before": "2026-07-13",
            "days": 1
        }
    ]
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the Habit Streak Calculator work?

Unique completion dates are sorted into consecutive-day runs and compared with the as-of date.

What information should I enter?

Enter completion dates, as-of date. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports current streak, longest streak, completion days, streak gaps, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.