actually, that wont work quite right, but this will:
don't create the calculation on the calculation tab.
Instead, do the math inside the discount.
Set the discount rule up with the trigger from the tutorial
In the calculation section, set it to a flat rate and add the following code for the flat rate:
floor($this->TotalColumn('TotalPrice')/500)*25