If you think you will earn £20,000 this year you will pay tax on everything over £11,850
So 20,000-11850=8150
8150*20%=1630 which is due in January 2019
Also due is January because the tax man is mean is 50% of that towards next years tax
So in January you owe 1630+815=2445
Then in July you owe 815 plus the amount your self assessment says less 1630)
In April you do your self assessment and it tells you home much tax you actually owe
& the following January you pay half of amount as tax
repeat as necessary