A habit takes 66 days on average
In a London study, it took an average of 66 days for a behaviour to become automatic, with big differences between people. And missing one day didn't break anything.
Phillippa Lally et al.Study in the European Journal of Social Psychology · 2010