Science tells us that it takes about three months of repetition, almost every day, for a habit to become really strong. How long something takes depends on how the behaviour is and how complex it is. We don't have awareness of how our habits work but there's lots of speculation out there in literature.