How early do you fill C3-C5? C2?

For controlled substances (C3-C5 and C2), how early do you fill such prescriptions?

Is this based on the state law, pharmacy policy, provider’s policy, professional judgment, etc.?