it would help if put in code-tags. and again: whats the problem? You try to implement a formula, which formula? Whats the problem with the code u posted? wrong output? (if yes which?) any errormessages?