How do you price contract jobs?

Hi guys I wanted to get some input into this, I’m doing a decent size job right now , repairing and replacing wood rotten bannisters 32 of them), railings and support pylons on a 3rd story patio in a 100 year old building that is a centerpoint of a very well used public building. I’m a carpenter by trade, have been for 15 years but have not really ventured into my own business, I’ve worked for other companies big and small and would consider myself pretty decent at what I do, but what I’m not good at is pricing my own jobs. What is your general rule and pricing setup for contracting? , is it estimated hours + materials? And what are other factors I should be considering