There should be a regulation / law forcing companies to use the "lowest price in the last 30 days" or something like that instead of whatever they are currently using to calculate the sales discount
Is there a definite time period where a newly discounted price is not included within the "last 30 days"?
There is in many areas. Any item promoted as being on sale will have one day to set a very high price it will normally never be at. This is especially true with appliances and beds.
There is such a law in the EU (Omnibus Directive, Article 6a). The stores are required to show what was the lowest price in the last 30 days whenever a product is on sale. It's sometimes hilarious, especially on AliExpress, to see a "promotion" when the "last 30 days price" indicates otherwise.
We have this in France already, prices just go up early-mid October so starting mid November the deals look still "amazing".
In Canada we have this kind of regulation. It's illegal for companies to promote a fake discount by making up a regular price. It's hard for me to properly summarize it so probably best to just link straight to a source: https://competition-bureau.canada.ca/en/deceptive-marketing-...
It's kinda nice because it does help prevent some of this crap from happening as much in Amazon.