Extracted from stacked PRs #630/#631 (commit d91d9e0). Fix Metrics by_week/week calculations across DST transitions; includes tests (product_by_week). Target: `next`.