As little as possible. Macs do not need many times of formatting like Windows computers. If you want to speed up your Mac, you can delete caches, junk files, and unused system files regularly, remove unwanted applications after temporary use, or update applications and macOS timely.