What are estimated payments based on? Current income or last year's income?

I was told that I should make quarterly estimated payments to the IRS on self-employment income throughout 2024 based on what I earned in 2023. Then if I end up earning more in 2024 I can pay the difference when I file in April. Is that correct?

 

What about for California?