Well, I can say that I have encountered this problem before, so I hope I can help you. I know one great calculator for this. Here is the link to their site
https://concalc.org/board-foot-calculator/ . This calculator really helped me when I came across this problem, so feel free to try it. I hope that my advice has helped you, good luck.