Madara goal is wrong but it can be understandable because he Mất tích 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 hoặc bad