Explicit bracketing for padding calculation