Why replace the formula with a User Defined Function?