Function for Max Offset from Alignment

Hi,

I am trying to find a function that will automate my fence diagram by inserting the alignment offset in my Fence diagram title block. I am not referring to the offset for each individual hole, but for the max offset distance you type in the output tab. All functions I've seen refer to each individual hole and not what I'm looking for.

Thanks,