In this rule

Historical Rules · 13 October 2023

Rule 508.1h

Official source text from the 13 October 2023 Rules release

Permalink

If any of the chosen creatures require paying costs to attack, or if any optional costs to attack were chosen, the active player determines the total cost to attack. Costs may include paying mana, tapping permanents, sacrificing permanents, discarding cards, and so on. Once the total cost is determined, it becomes “locked in.” If effects would change the total cost after this time, ignore this change.

Find this number in the current Rules