I am not sure, if I should add the width of the wood, I have thought about that.
This is the code I ended up writing, I am considering if I should add the width bit for the wood and make new calculations, but I am not sure if I should complicate it that much, as I am doing it for someone else...