Thanks a lot! it is working as expected.. was breaking my head to figure out a way for this...

could you please take some time to explain how it work too... i dint understand the +6 part specifically.. thanks once again