Tom - Your solution sounds a lot simpler (and more effective) than mine.

BF I was never very good at math.