I have been looking for a formula for these types of problems but I still haven't gotten an answer. The question you guys can use can be found here. All I need is the formula but if you want you can include the answer for the question. Also if you find the formula for a semicircle then please include that. Be sure to keep in mind that you need to include $2r$ in your formula.
Also if you are confused please tell me so I know whether I should elaborate.