A toothpaste burn to your skin will heal within a few days to a week.
I've left toothpaste on my face before and forgot to wash the toothpaste off my skin and the toothpaste caused a burn near my mouth and on my lips.
Within a few days the toothpaste burn started healing and within 2 weeks the toothpaste burn was fully healed and no longer hurt.
A toothpaste burn will heal on it's own and should fully go away within a few weeks depending on how bad the toothpaste burn is.
When you use toothpaste make sure to wipe your face off with a wet wash rag to remove any toothpaste that can be left on your face.
There's not much you can do to speed up the healing of the toothpaste burn but you could apply some hydrogen peroxide to it and it will help the healing of the toothpaste burn.