Repetitions, not time
How long does it take to form a habit? Clear argues it's the wrong question. Habits form through repetition, not time. The question is how many times you've done it.
Research by Phillippa Lally and colleagues in 2009 followed people building new daily habits. On average it took about 66 days for a behavior to become automatic, but the range was huge: from 18 to 254 days, depending on the person and the habit.
Missing one day didn't meaningfully set people back. What mattered was coming back to it.
Focus on getting your reps in. Each repetition makes the habit more automatic.