Fill the box with unit cubes and count them. The formula is a shortcut for that count, not a rule to memorise.