Thanks Jim,
I'll do my homework in implementing your formula.