Welcome! A good way to find custom code, most of which is free, is to check the quick browse lists in the community – created wiki. In this case, just look in the smart apps section under “locks.” The most popular one, and the one I think you will probably want, is “lock manager.” Just follow the link and you will go to its author’s discussion thread and you can ask any further questions there.
If you haven’t used custom code before, it’s pretty straightforward. Basically just copy the author’s code and paste it into your own account. The following FAQ describes that process: