Works only if given diameter if you have radius, just multiply it by 2 and you get the diameter Made in 2 minutes to help me with something