Allow about 6 weeks for your finger to heal completely. Once healed, your finger may move easily without pain.
As to how soon you can return to work depends on your job.
If you can do your job without using the hand, you’ll probably be able to go back 1 or 2 days after surgery.