# Warn if milestone due date is in the past or far in the future

## Problem

When setting up milestones in either the milestones batch wizard or the contracts wizard, admins could accidentally enter a due date that is in the past or unreasonably far in the future (e.g. a typo resulting in a date decades away). There was no feedback to alert them to a potentially incorrect date.

## Solution

A non-blocking warning message is now displayed below the due date field whenever a milestone is saved with a date that appears incorrect. The warning does not prevent the admin from saving — it simply draws attention to the value so they can verify it is intentional.

## How it works

After a milestone's due date is autosaved, the system checks the date:

* If the due date is **in the past**, a warning is shown: "Warning: this due date is in the past"
* If the due date is **more than 5 years in the future**, a warning is shown: "Warning: this due date is more than 5 years in the future"
* Otherwise, no warning is displayed

The warning appears inline below the due date field and clears automatically when the date is corrected.

## UI

A yellow/orange warning message appears directly beneath the due date input field in both:

* The **milestones batch wizard** (milestone batches)
* The **contracts wizard** milestones step (contract milestones)

The warning is informational only and does not block saving or progressing through the wizard.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.tahua.io/product-news/2026/april/warn-if-milestone-due-date-is-in-the-past-or-far-in-the-future.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
