Math problem

Wow, it works great. Thank u very much. It is always nice to have smart people to have the best and simple solutions.

Thx again!