Total And Sumdifference Rule For Doubling