How do I count the number of days I spent in a state? I was on an F-1 OPT in 2018.

The "Number of Days" link in the Turbo Tax question states that I should include "all days in California for any purpose". However, I'm unsure considering that I'm considered a non-resident as an F1 OPT visa holder