In CA the minimum allowed limit by a county is 6 flowering, 12 veg.
However, you're doctor can write that you need more for your condition and up your limit as he sees fit. Mine says 30 flowering and 3200 grams in my possession and under Prop 215 and SB 420 it's totally legal.