Cal. Bus. & Prof. Code § 7028.15
(a) It is a misdemeanor for any person to submit a bid to a public agency in order to engage in the business or act in the capacity of a contractor within this state without having a license therefor, except in any of the following cases:
(b) If a person has been previously convicted of the offense described in this section, the court shall impose a fine of 20 percent of the price of the contract under which the unlicensed person performed contracting work, or four thousand five hundred dollars ($4,500), whichever is greater, or imprisonment in the county jail for not less than 10 days nor more than six months, or both.
In the event the person performing the contracting work has agreed to furnish materials and labor on an hourly basis, “the price of the contract” for the purposes of this subdivision means the aggregate sum of the cost of materials and labor furnished and the cost of completing the work to be performed.