I used this to size my chain
https://www.parktool.com/en-int/blog/repair-help/chain-length-sizing
A new chain quite often slips, mine started off slipping on the 11t cog but after 50-60 miles was ok. As has been said, adjusting the "B" screw to "wrap round" the cog a bit more helped with mine...