Madara goal is wrong but it can be understandable because he 迷失 his brother,the trust of his clan and more,so madara try to create a world hapiness but casting infinite tsukyomi upon the world so everyone could be happy,it is your point of view if his goal is good 或者 bad