# fix\(cost\): ignore future dates when sizing all history \(\#501\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/c71219757fec1f8045ed28220b3d56714b033c12)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: c71219757fec1f8045ed28220b3d56714b033c12

Requested commit: c71219757fec1f8045ed28220b3d56714b033c12

Commit: c71219757fec1f8045ed28220b3d56714b033c12

Tree: 41f7724d36f47700a7e638b69701b40c07671873

Author: Simone

Committer: GitHub

## Message

```
fix(cost): ignore future dates when sizing all history (#501)

All-history span calculation included daily dates after the reported scan day while daily and model normalization already excluded those records. This widened the window backwards, added empty days, and lowered daily cost and token averages.

Filter span candidates against a validated scan day and preserve the recorded-date fallback when the scan date is unavailable. Cover next-day, distant-future, reordered, future-only, and multi-year history. Update Unreleased, usage and cost-history guidance; no CLI contract, config, translation, packaging or TODO parity changes are required.
```

## Parents

- [5342cd7ce1387ec7fc79c7ac40e6aa8a7dc6d6cf](https://git.cafe/lucenx/codexbar-plasma/commit/5342cd7ce1387ec7fc79c7ac40e6aa8a7dc6d6cf?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/c71219757fec1f8045ed28220b3d56714b033c12?format=markdown)
