How do I adjust my w4's so I don't pay taxes at the end of the year?

Last year I had to pay $307 in taxes after all was said and done. I cannot tell if that was because the Child Tax credit was distributed in payment during the tax year in 2021. I continue to get raises and that is definitely putting me in an different tax bracket. I have me, my wife, and a 7 year old daughter. We file married jointly and on my pay stubs there is something under the federal section that says

Claim Dependent: $2000

 

Under State Section  (CA): Allowances: 3