In the US it will depend on if they are state or federal charges. Sentences for state charges can vary widely. You can get a 5 year sentence probated immediately, meaning you go home but you have to follow certain rules and of course get drug tested regularly. Federal charges follow more structured sentencing guidelines, which for drugs depend on the drug and the amount. You can find the federal sentencing guidelines online.