Source is my own two decades working in the criminal justice system, as both a prosecutor and a defense attorney. But perhaps your experience as an attorney differs from mine.
>> "1g of cocaine might get 10-30 days"
> Source please.
Google: how many days of jail time 1 gram cocaine california
As with many legal questions, the matter of jurisdiction comes into play. Possession of any amount in Texas, is supposed to dictate a higher length sentence on average. Florida, heavier than CA but far less than TX guidelines. In actuality, courts tend to sentence based on defendant history and current political climate.
Source please.
Otherwise there is a significant difference between using and selling.