In this rule

Historical Rules · 5 February 2021

Rule 702.47c

Official source text from the 5 February 2021 Rules release

Permalink

Generic mana in the sacrificed permanent’s mana cost reduces generic mana in the spell’s total cost. Colored and colorless mana in the sacrificed permanent’s mana cost reduces mana of the same type in spell’s total cost, and any excess reduces that much generic mana in spell’s total cost. (See rule 118.7.)

Find this number in the current Rules