In Indian culture, people do a ritual for 40 days without trying to make a habit, and my reading is that habit forming is the purpose. Sometimes what you do it not directly related to your goal, let's say fasting or going to temple or whatever, but I guess 40 days of thinking about your new-routine-adjacent-goal makes you obsess about it and try to make it happen.
So twice what is being discussed here.