Hi Sajan,
It looks like it is working, but i will be honest, i'm lost in the formula. o_O
I have no experience using the mmult command, and i'm staring at it, and it doesn't enter the brain :D (need more coffee i think)
This in combination with the min/max you are using,....
Could you please...