equation using driven dimensions in Custom Properties

I would like a Custom Property to evaluate as follows: number = dimension 1(driven) + dimension 2(driven). I have defined a global variable as "number". How do I get that to evaluate in the Custom Properties dialog box?

Thanks,

Mike Lydon

SolidworksParts And Features