As the other lady said, it depends on location, how deep it is, how large it is, how hard it is to remove, etc. The best way to find out is to ask your doctor how long he/she thinks you'll need to take off. If it's superficial and easy to get to, not very large, then you may be able to go back to work after a day at home; if you are having a general anesthetic, you can't drive for 24 hours. Or you may be able to do back to work the next day, depending on the time of day your surgery is done.
If, on the other hand, it is in a painful location, and is deep, then a couple days off may be in order.
Part of it depends on how much pain you are having and if you need to take pain killers, which would influence your ability to drive, make judgments, and other important things.
Bottom line; ask your doctor. Your doctor know where it is, how large it is, how long surgery will take, how painful it might be and whether or not you need general anesthesia or can get away with something lighter. Your discharge paperwork will tell you what the doc thinks you need to do(but that won't help you plan ahead)